From 9ed2ee577ee388570610fee6bde8851c3f833ddc Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Euzenat?= <Jerome.Euzenat@inria.fr>
Date: Mon, 3 Jul 2023 10:43:46 +0200
Subject: [PATCH] Code beautifying...

---
 .../moex/classgui/ClassificationPanel.java     | 18 +++++-------------
 1 file changed, 5 insertions(+), 13 deletions(-)

diff --git a/src/fr/inria/moex/classgui/ClassificationPanel.java b/src/fr/inria/moex/classgui/ClassificationPanel.java
index 62d337e..2add712 100644
--- a/src/fr/inria/moex/classgui/ClassificationPanel.java
+++ b/src/fr/inria/moex/classgui/ClassificationPanel.java
@@ -58,19 +58,11 @@ public class ClassificationPanel extends JPanel {
 	// JE2023: should eventually go in Classification
 	public int[] setFeature( int[] features, Feature feature, int value ) {
 		int[] newFeat = Arrays.copyOf(features, features.length);
-		switch (feature) {
-		case COLOR:
-			newFeat[3] = value;
-			break;
-		case SHAPE:
-			newFeat[2] = value;
-			break;
-		case FILLING:
-			newFeat[1] = value;
-			break;
-		case NUMBER:
-			newFeat[0] = value;
-			break;
+		switch ( feature ) {
+		case COLOR: newFeat[3] = value; break;
+		case SHAPE: newFeat[2] = value; break;
+		case FILLING: newFeat[1] = value; break;
+		case NUMBER: newFeat[0] = value; break;
 		}
 		return newFeat;
 	}
-- 
GitLab