File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
java/src/org/openqa/selenium/devtools Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -1276,6 +1276,10 @@ public TypeDeclaration<?> toTypeDeclaration() {
1276
1276
fromJson .addParameter (JsonInput .class , "input" );
1277
1277
fromJson .getBody ().get ().addStatement (String .format ("return new %s(%s);" , name , getMapper ()));
1278
1278
1279
+ MethodDeclaration getter = classDecl .addMethod ("get" + capitalize (name )).setPublic (true );
1280
+ getter .setType (getJavaType ());
1281
+ getter .getBody ().get ().addStatement (String .format ("return %s;" , propertyName ));
1282
+
1279
1283
MethodDeclaration toString = classDecl .addMethod ("toString" ).setPublic (true );
1280
1284
toString .setType (String .class );
1281
1285
toString .getBody ().get ().addStatement (String .format ("return %s.toString();" , propertyName ));
You can’t perform that action at this time.
0 commit comments