1
0
mirror of https://github.com/octoleo/plantuml.git synced 2024-11-22 21:15:09 +00:00

Merge pull request #988 from soloturn/always-true

always true, collapse
This commit is contained in:
PlantUML 2022-04-11 10:01:03 +02:00 committed by GitHub
commit f03b99a3c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 16 additions and 17 deletions

View File

@ -64,7 +64,7 @@ public class Upf9Decoder {
final int read1 = is.read(); final int read1 = is.read();
return (char) ((read0 << 8) + read1); return (char) ((read0 << 8) + read1);
} }
if (read0 >= 0x80 && read0 <= 0xFF) { if (read0 >= 0x80) {
final int read1 = is.read(); final int read1 = is.read();
return (char) (((read0 - 0x60) << 8) + read1); return (char) (((read0 - 0x60) << 8) + read1);
} }

View File

@ -165,7 +165,6 @@ public abstract class PSystemCommandFactory extends PSystemAbstractFactory {
continue; continue;
it.copyStateFrom(cloned); it.copyStateFrom(cloned);
assert lines != null;
return new Step(cmd, lines); return new Step(cmd, lines);
} }
} }

View File

@ -117,7 +117,7 @@ public class DescriptionDiagram extends AbstractEntityDiagram {
@Override @Override
public void makeDiagramReady() { public void makeDiagramReady() {
super.makeDiagramReady(); super.makeDiagramReady();
final LeafType defaultType = isUsecase() ? LeafType.DESCRIPTION : LeafType.DESCRIPTION; final LeafType defaultType = LeafType.DESCRIPTION;
final USymbol defaultSymbol = isUsecase() ? getSkinParam().actorStyle().toUSymbol() : USymbols.INTERFACE; final USymbol defaultSymbol = isUsecase() ? getSkinParam().actorStyle().toUSymbol() : USymbols.INTERFACE;
for (ILeaf leaf : getLeafsvalues()) { for (ILeaf leaf : getLeafsvalues()) {
if (leaf.getLeafType() == LeafType.STILL_UNKNOWN) { if (leaf.getLeafType() == LeafType.STILL_UNKNOWN) {