Skip to content

Commit cedeeb5

Browse files
committed
These can all be marked final
1 parent 65ea3e9 commit cedeeb5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

modules/ingest-common/src/main/java/org/elasticsearch/ingest/common/CommunityIdProcessor.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ String toCommunityId(byte[] seed) {
400400
}
401401
}
402402

403-
static class Transport {
403+
static final class Transport {
404404
public enum Type {
405405
Unknown(-1),
406406
Icmp(1),
@@ -442,8 +442,8 @@ public int getTransportNumber() {
442442
}
443443
}
444444

445-
private Type type;
446-
private int transportNumber;
445+
private final Type type;
446+
private final int transportNumber;
447447

448448
Transport(int transportNumber, Type type) { // Change constructor to public
449449
this.transportNumber = transportNumber;

0 commit comments

Comments
 (0)