File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
src/org/opensolaris/opengrok/configuration Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -261,13 +261,17 @@ private static Project getSampleProject(String name) {
261
261
private static Object getDefaultValue (Class <?> klass , Method setter ,
262
262
Configuration cinst ) {
263
263
264
- String gname = setter .getName ();
265
- gname = gname .replaceFirst ("^set" , "get" );
264
+ String gname = setter .getName ().replaceFirst ("^set" , "get" );
266
265
Method getter ;
267
266
try {
268
267
getter = klass .getDeclaredMethod (gname );
269
268
} catch (NoSuchMethodException |SecurityException ex ) {
270
- return null ;
269
+ gname = setter .getName ().replaceFirst ("^set" , "is" );
270
+ try {
271
+ getter = klass .getDeclaredMethod (gname );
272
+ } catch (NoSuchMethodException |SecurityException ex2 ) {
273
+ return null ;
274
+ }
271
275
}
272
276
273
277
try {
You can’t perform that action at this time.
0 commit comments