Fix two issues found by ErrorProne
This commit is contained in:
parent
8c10d96416
commit
a8e5413d1f
|
@ -747,6 +747,7 @@
|
||||||
<reuseForks>true</reuseForks>
|
<reuseForks>true</reuseForks>
|
||||||
<excludes>
|
<excludes>
|
||||||
<exclude>**/*Dstu2*</exclude>
|
<exclude>**/*Dstu2*</exclude>
|
||||||
|
<exclude>**/*Dstu3*</exclude>
|
||||||
<exclude>**/stresstest/*</exclude>
|
<exclude>**/stresstest/*</exclude>
|
||||||
</excludes>
|
</excludes>
|
||||||
</configuration>
|
</configuration>
|
||||||
|
|
|
@ -1833,8 +1833,8 @@ public class ProfileUtilities extends TranslatingUtilities {
|
||||||
case BUNDLED : return "b";
|
case BUNDLED : return "b";
|
||||||
case CONTAINED : return "c";
|
case CONTAINED : return "c";
|
||||||
case REFERENCED: return "r";
|
case REFERENCED: return "r";
|
||||||
|
default: return "?";
|
||||||
}
|
}
|
||||||
return "?";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -2271,7 +2271,7 @@ public class ProfileUtilities extends TranslatingUtilities {
|
||||||
if (definition != null && definition.hasShort()) {
|
if (definition != null && definition.hasShort()) {
|
||||||
if (!c.getPieces().isEmpty()) c.addPiece(gen.new Piece("br"));
|
if (!c.getPieces().isEmpty()) c.addPiece(gen.new Piece("br"));
|
||||||
c.addPiece(checkForNoChange(definition.getShortElement(), gen.new Piece(null, gt(definition.getShortElement()), null)));
|
c.addPiece(checkForNoChange(definition.getShortElement(), gen.new Piece(null, gt(definition.getShortElement()), null)));
|
||||||
} else if (fallback != null && fallback != null && fallback.hasShort()) {
|
} else if (fallback != null && fallback.hasShort()) {
|
||||||
if (!c.getPieces().isEmpty()) c.addPiece(gen.new Piece("br"));
|
if (!c.getPieces().isEmpty()) c.addPiece(gen.new Piece("br"));
|
||||||
c.addPiece(checkForNoChange(fallback.getShortElement(), gen.new Piece(null, gt(fallback.getShortElement()), null)));
|
c.addPiece(checkForNoChange(fallback.getShortElement(), gen.new Piece(null, gt(fallback.getShortElement()), null)));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue