1
0
mirror of https://github.com/octoleo/plantuml.git synced 2024-11-26 06:46:45 +00:00

always true, collapse

also, remove assert from PSystemCommandFactory, getCandidate
This commit is contained in:
soloturn 2022-02-08 23:33:30 +01:00
parent c9137be051
commit 38d5625b3a
4 changed files with 16 additions and 17 deletions

View File

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

View File

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

View File

@ -117,7 +117,7 @@ public class DescriptionDiagram extends AbstractEntityDiagram {
@Override
public void 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;
for (ILeaf leaf : getLeafsvalues()) {
if (leaf.getLeafType() == LeafType.STILL_UNKNOWN) {