Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 9ed2ee57 authored by Jérôme Euzenat's avatar Jérôme Euzenat
Browse files

Code beautifying...

parent 31cc66bb
No related branches found
No related tags found
No related merge requests found
...@@ -58,19 +58,11 @@ public class ClassificationPanel extends JPanel { ...@@ -58,19 +58,11 @@ public class ClassificationPanel extends JPanel {
// JE2023: should eventually go in Classification // JE2023: should eventually go in Classification
public int[] setFeature( int[] features, Feature feature, int value ) { public int[] setFeature( int[] features, Feature feature, int value ) {
int[] newFeat = Arrays.copyOf(features, features.length); int[] newFeat = Arrays.copyOf(features, features.length);
switch (feature) { switch ( feature ) {
case COLOR: case COLOR: newFeat[3] = value; break;
newFeat[3] = value; case SHAPE: newFeat[2] = value; break;
break; case FILLING: newFeat[1] = value; break;
case SHAPE: case NUMBER: newFeat[0] = value; break;
newFeat[2] = value;
break;
case FILLING:
newFeat[1] = value;
break;
case NUMBER:
newFeat[0] = value;
break;
} }
return newFeat; return newFeat;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment