Skip to content

Commit e6240c6

Browse files
committed
chore(QTDI-2893): rename pattern match
1 parent ce697d2 commit e6240c6

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

  • component-studio/component-runtime-di/src/main/java/org/talend/sdk/component/runtime/di/schema

component-studio/component-runtime-di/src/main/java/org/talend/sdk/component/runtime/di/schema/TaCoKitGuessSchema.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -673,8 +673,8 @@ private boolean guessInputComponentSchemaThroughResult() throws Exception {
673673
if (rowObject == null) {
674674
return false;
675675
}
676-
if (rowObject instanceof Record record) {
677-
return fromSchema(record.getSchema());
676+
if (rowObject instanceof Record rcd) {
677+
return fromSchema(rcd.getSchema());
678678
} else if (rowObject instanceof java.util.Map map) {
679679
return guessInputSchemaThroughResults(input, map);
680680
} else if (rowObject instanceof java.util.Collection) {
@@ -709,8 +709,8 @@ public boolean guessSchemaThroughResult(final Object rowObject) throws Exception
709709
return guessSchemaThroughResult(map);
710710
} else if (rowObject instanceof Schema schema) {
711711
return fromSchema(schema);
712-
} else if (rowObject instanceof Record record) {
713-
return fromSchema(record.getSchema());
712+
} else if (rowObject instanceof Record rcd) {
713+
return fromSchema(rcd.getSchema());
714714
} else if (rowObject instanceof java.util.Collection) {
715715
throw new Exception("Can't guess schema from a Collection");
716716
} else {

0 commit comments

Comments
 (0)