Skip to content

Commit a395432

Browse files
Fabrice-TIERCELINFabrice-TIERCELIN
authored andcommitted
Reencode more files
1 parent 44fe81f commit a395432

31 files changed

+3818
-3818
lines changed
Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,34 @@
1-
/*
2-
* AutoRefactor - Eclipse plugin to automatically refactor Java code bases.
3-
*
4-
* Copyright (C) 2013 Jean-Noël Rouvignac - initial API and implementation
5-
*
6-
* This program is free software: you can redistribute it and/or modify
7-
* it under the terms of the GNU General Public License as published by
8-
* the Free Software Foundation, either version 3 of the License, or
9-
* any later version.
10-
*
11-
* This program is distributed in the hope that it will be useful,
12-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14-
* GNU General Public License for more details.
15-
*
16-
* You should have received a copy of the GNU General Public License
17-
* along with this program under LICENSE-GNUGPL. If not, see
18-
* <http://www.gnu.org/licenses/>.
19-
*
20-
*
21-
* All rights reserved. This program and the accompanying materials
22-
* are made available under the terms of the Eclipse Public License v1.0
23-
* which accompanies this distribution under LICENSE-ECLIPSE, and is
24-
* available at http://www.eclipse.org/legal/epl-v10.html
25-
*/
26-
package org.autorefactor.cfg;
27-
28-
public abstract class ParentWhileLoopsSample {
29-
30-
protected int superField = 0;
31-
32-
public abstract int sample(boolean b1, boolean b2);
33-
34-
}
1+
/*
2+
* AutoRefactor - Eclipse plugin to automatically refactor Java code bases.
3+
*
4+
* Copyright (C) 2013 Jean-Noël Rouvignac - initial API and implementation
5+
*
6+
* This program is free software: you can redistribute it and/or modify
7+
* it under the terms of the GNU General Public License as published by
8+
* the Free Software Foundation, either version 3 of the License, or
9+
* any later version.
10+
*
11+
* This program is distributed in the hope that it will be useful,
12+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14+
* GNU General Public License for more details.
15+
*
16+
* You should have received a copy of the GNU General Public License
17+
* along with this program under LICENSE-GNUGPL. If not, see
18+
* <http://www.gnu.org/licenses/>.
19+
*
20+
*
21+
* All rights reserved. This program and the accompanying materials
22+
* are made available under the terms of the Eclipse Public License v1.0
23+
* which accompanies this distribution under LICENSE-ECLIPSE, and is
24+
* available at http://www.eclipse.org/legal/epl-v10.html
25+
*/
26+
package org.autorefactor.cfg;
27+
28+
public abstract class ParentWhileLoopsSample {
29+
30+
protected int superField = 0;
31+
32+
public abstract int sample(boolean b1, boolean b2);
33+
34+
}
Lines changed: 65 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -1,65 +1,65 @@
1-
/*
2-
* AutoRefactor - Eclipse plugin to automatically refactor Java code bases.
3-
*
4-
* Copyright (C) 2013 Jean-Noël Rouvignac - initial API and implementation
5-
*
6-
* This program is free software: you can redistribute it and/or modify
7-
* it under the terms of the GNU General Public License as published by
8-
* the Free Software Foundation, either version 3 of the License, or
9-
* any later version.
10-
*
11-
* This program is distributed in the hope that it will be useful,
12-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14-
* GNU General Public License for more details.
15-
*
16-
* You should have received a copy of the GNU General Public License
17-
* along with this program under LICENSE-GNUGPL. If not, see
18-
* <http://www.gnu.org/licenses/>.
19-
*
20-
*
21-
* All rights reserved. This program and the accompanying materials
22-
* are made available under the terms of the Eclipse Public License v1.0
23-
* which accompanies this distribution under LICENSE-ECLIPSE, and is
24-
* available at http://www.eclipse.org/legal/epl-v10.html
25-
*/
26-
package org.autorefactor.cfg;
27-
28-
public class SwitchSample {
29-
30-
public boolean sample(int i, int j) {
31-
outer:
32-
switch (i) {
33-
case 0:
34-
switch (j) {
35-
case 0: // fall through
36-
case 1:
37-
boolean b = false;
38-
// fall through
39-
case 2:
40-
b = true;
41-
break;
42-
// case 3:
43-
// return b;
44-
case 4:
45-
boolean b2 = true;
46-
break outer;
47-
case 5:
48-
;
49-
break;
50-
default:
51-
}
52-
// fall through
53-
case 1:
54-
int k = 0;
55-
// fall through
56-
// case 2:
57-
// k++;
58-
// // fall through
59-
// case 3:
60-
// return k == 0;
61-
}
62-
return true;
63-
}
64-
65-
}
1+
/*
2+
* AutoRefactor - Eclipse plugin to automatically refactor Java code bases.
3+
*
4+
* Copyright (C) 2013 Jean-Noël Rouvignac - initial API and implementation
5+
*
6+
* This program is free software: you can redistribute it and/or modify
7+
* it under the terms of the GNU General Public License as published by
8+
* the Free Software Foundation, either version 3 of the License, or
9+
* any later version.
10+
*
11+
* This program is distributed in the hope that it will be useful,
12+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14+
* GNU General Public License for more details.
15+
*
16+
* You should have received a copy of the GNU General Public License
17+
* along with this program under LICENSE-GNUGPL. If not, see
18+
* <http://www.gnu.org/licenses/>.
19+
*
20+
*
21+
* All rights reserved. This program and the accompanying materials
22+
* are made available under the terms of the Eclipse Public License v1.0
23+
* which accompanies this distribution under LICENSE-ECLIPSE, and is
24+
* available at http://www.eclipse.org/legal/epl-v10.html
25+
*/
26+
package org.autorefactor.cfg;
27+
28+
public class SwitchSample {
29+
30+
public boolean sample(int i, int j) {
31+
outer:
32+
switch (i) {
33+
case 0:
34+
switch (j) {
35+
case 0: // fall through
36+
case 1:
37+
boolean b = false;
38+
// fall through
39+
case 2:
40+
b = true;
41+
break;
42+
// case 3:
43+
// return b;
44+
case 4:
45+
boolean b2 = true;
46+
break outer;
47+
case 5:
48+
;
49+
break;
50+
default:
51+
}
52+
// fall through
53+
case 1:
54+
int k = 0;
55+
// fall through
56+
// case 2:
57+
// k++;
58+
// // fall through
59+
// case 3:
60+
// return k == 0;
61+
}
62+
return true;
63+
}
64+
65+
}
Lines changed: 58 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -1,58 +1,58 @@
1-
/*
2-
* AutoRefactor - Eclipse plugin to automatically refactor Java code bases.
3-
*
4-
* Copyright (C) 2013 Jean-Noël Rouvignac - initial API and implementation
5-
*
6-
* This program is free software: you can redistribute it and/or modify
7-
* it under the terms of the GNU General Public License as published by
8-
* the Free Software Foundation, either version 3 of the License, or
9-
* any later version.
10-
*
11-
* This program is distributed in the hope that it will be useful,
12-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14-
* GNU General Public License for more details.
15-
*
16-
* You should have received a copy of the GNU General Public License
17-
* along with this program under LICENSE-GNUGPL. If not, see
18-
* <http://www.gnu.org/licenses/>.
19-
*
20-
*
21-
* All rights reserved. This program and the accompanying materials
22-
* are made available under the terms of the Eclipse Public License v1.0
23-
* which accompanies this distribution under LICENSE-ECLIPSE, and is
24-
* available at http://www.eclipse.org/legal/epl-v10.html
25-
*/
26-
package org.autorefactor.cfg;
27-
28-
import java.io.UnsupportedEncodingException;
29-
30-
public class TryCatchThrowSample {
31-
32-
public String sample(boolean bo, byte[] by) {
33-
String result = null;
34-
try {
35-
if (bo) {
36-
result = null;
37-
methodThatThrowsIllegalStateException();
38-
}
39-
if (by[0] != 8) {
40-
throw new RuntimeException();
41-
}
42-
{
43-
result = new String(by, "UTF-8");
44-
}
45-
by[0] = 0;
46-
} catch (IllegalStateException e) {
47-
e.printStackTrace();
48-
} catch (UnsupportedEncodingException e) {
49-
e.printStackTrace();
50-
} finally {
51-
System.out.println(result);
52-
}
53-
return result;
54-
}
55-
56-
public void methodThatThrowsIllegalStateException() throws IllegalStateException {
57-
}
58-
}
1+
/*
2+
* AutoRefactor - Eclipse plugin to automatically refactor Java code bases.
3+
*
4+
* Copyright (C) 2013 Jean-Noël Rouvignac - initial API and implementation
5+
*
6+
* This program is free software: you can redistribute it and/or modify
7+
* it under the terms of the GNU General Public License as published by
8+
* the Free Software Foundation, either version 3 of the License, or
9+
* any later version.
10+
*
11+
* This program is distributed in the hope that it will be useful,
12+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14+
* GNU General Public License for more details.
15+
*
16+
* You should have received a copy of the GNU General Public License
17+
* along with this program under LICENSE-GNUGPL. If not, see
18+
* <http://www.gnu.org/licenses/>.
19+
*
20+
*
21+
* All rights reserved. This program and the accompanying materials
22+
* are made available under the terms of the Eclipse Public License v1.0
23+
* which accompanies this distribution under LICENSE-ECLIPSE, and is
24+
* available at http://www.eclipse.org/legal/epl-v10.html
25+
*/
26+
package org.autorefactor.cfg;
27+
28+
import java.io.UnsupportedEncodingException;
29+
30+
public class TryCatchThrowSample {
31+
32+
public String sample(boolean bo, byte[] by) {
33+
String result = null;
34+
try {
35+
if (bo) {
36+
result = null;
37+
methodThatThrowsIllegalStateException();
38+
}
39+
if (by[0] != 8) {
40+
throw new RuntimeException();
41+
}
42+
{
43+
result = new String(by, "UTF-8");
44+
}
45+
by[0] = 0;
46+
} catch (IllegalStateException e) {
47+
e.printStackTrace();
48+
} catch (UnsupportedEncodingException e) {
49+
e.printStackTrace();
50+
} finally {
51+
System.out.println(result);
52+
}
53+
return result;
54+
}
55+
56+
public void methodThatThrowsIllegalStateException() throws IllegalStateException {
57+
}
58+
}

0 commit comments

Comments
 (0)