Skip to content

Commit 3d7af25

Browse files
checkstyle
1 parent d9d5626 commit 3d7af25

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

enigma-swing/src/main/java/org/quiltmc/enigma/gui/panel/EditorPanel.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -619,14 +619,14 @@ private TrackedValue<ThemeProperties.SerializableColor> getColorConfig(
619619
} else {
620620
return switch (type) {
621621
case OBFUSCATED -> this.markObfuscated
622-
? Config.getCurrentSyntaxPaneColors().obfuscatedOutline
623-
: null;
622+
? Config.getCurrentSyntaxPaneColors().obfuscatedOutline
623+
: null;
624624
case DEOBFUSCATED -> this.markDeobfuscated
625-
? Config.getCurrentSyntaxPaneColors().deobfuscatedOutline
626-
: null;
625+
? Config.getCurrentSyntaxPaneColors().deobfuscatedOutline
626+
: null;
627627
case JAR_PROPOSED, DYNAMIC_PROPOSED -> this.markProposed
628-
? Config.getCurrentSyntaxPaneColors().proposedOutline
629-
: null;
628+
? Config.getCurrentSyntaxPaneColors().proposedOutline
629+
: null;
630630
// these only appear if debugTokenHighlights is true, so no need for a separate marker config
631631
case DEBUG -> Config.getCurrentSyntaxPaneColors().debugTokenOutline;
632632
};

enigma-swing/src/main/java/org/quiltmc/enigma/gui/panel/MarkableScrollPane.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -494,8 +494,8 @@ void update() {
494494

495495
private int scalePos(int pos) {
496496
return this.viewHeight > this.areaHeight
497-
? pos * this.areaHeight / this.viewHeight
498-
: pos;
497+
? pos * this.areaHeight / this.viewHeight
498+
: pos;
499499
}
500500

501501
void clearMarkers() {
@@ -528,7 +528,7 @@ Optional<ListenerPos> findListenerPos(int x, int y) {
528528

529529
boolean areaContains(int x, int y) {
530530
return this.areaX <= x && x <= this.areaX + MarkableScrollPane.this.markerWidth
531-
&& this.areaY <= y && y <= this.areaY + this.areaHeight;
531+
&& this.areaY <= y && y <= this.areaY + this.areaHeight;
532532
}
533533

534534
Rectangle createArea() {

0 commit comments

Comments
 (0)