Skip to content

Commit bd58af9

Browse files
authored
Merge pull request #39 from ShivamPaliwal1/patch-2 for mongo/docgen.java
Using getMethod() instead of getDeclaredMethod() to utilise inherited…
2 parents 9159259 + eecffe4 commit bd58af9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/main/java/utils/docgen/mongo/MongoDocumentGenerator.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ else if(keyClass.equals(CircularKey.class.getSimpleName()))
5050
try {
5151
this.keys = keyInstance.getConstructor(WorkLoadSettings.class).newInstance(ws);
5252
this.vals = valInstance.getConstructor(WorkLoadSettings.class).newInstance(ws);
53-
this.keyMethod = this.keyInstance.getDeclaredMethod("next", long.class);
54-
this.valMethod = this.valInstance.getDeclaredMethod("next", String.class);
53+
this.keyMethod = this.keyInstance.getMethod("next", long.class);
54+
this.valMethod = this.valInstance.getMethod("next", String.class);
5555
} catch (InstantiationException e) {
5656
e.printStackTrace();
5757
} catch (IllegalAccessException e) {

0 commit comments

Comments
 (0)