From 8230c3d69f4452145d24cfa1de8dc6fde46718c1 Mon Sep 17 00:00:00 2001 From: Lyubomir Marinov Date: Thu, 24 Mar 2016 10:05:09 -0500 Subject: [PATCH] Reduces assignments and adds final in search of constants suitable for a hashCode implementation. --- src/main/java/org/ice4j/ice/Candidate.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/ice4j/ice/Candidate.java b/src/main/java/org/ice4j/ice/Candidate.java index 9bca749..81e8070 100644 --- a/src/main/java/org/ice4j/ice/Candidate.java +++ b/src/main/java/org/ice4j/ice/Candidate.java @@ -62,7 +62,7 @@ public abstract class Candidate> /** * The transport address represented by this candidate. */ - private TransportAddress transportAddress = null; + private final TransportAddress transportAddress; /** * The type of this candidate. At this point the ICE specification (and @@ -70,7 +70,7 @@ public abstract class Candidate> * server reflexive, peer reflexive and relayed candidates. Others may be * added in the future. */ - private CandidateType candidateType = null; + private CandidateType candidateType; /** * An arbitrary string that is the same for two candidates