Project

General

Profile

« Previous | Next » 

Revision 7d7e33f1

Added by Neels Hofmeyr about 4 years ago

more aggressively set private final on class vars

View differences:

sim-applet/src/org/osmocom/IMSIPseudo/IMSIPseudo.java
15 15
	static byte[] LUCounter = new byte[] { '0', 'x', ' ', 'L', 'U' };
16 16

  
17 17
	/* Main menu */
18
	static byte[] title = new byte[] { 'I', 'M', 'S', 'I', ' ', 'P', 's', 'e', 'u', 'd', 'o', 'n', 'y', 'm',
18
	private static final byte[] title = new byte[] { 'I', 'M', 'S', 'I', ' ', 'P', 's', 'e', 'u', 'd', 'o', 'n', 'y', 'm',
19 19
					   'i', 'z', 'a', 't', 'i', 'o', 'n'};
20
	static byte[] showLU = new byte[] {'S', 'h', 'o', 'w', ' ', 'L', 'U', ' ', 'c', 'o', 'u', 'n', 't', 'e', 'r'};
21
	static byte[] showIMSI = new byte[] {'S', 'h', 'o', 'w', ' ', 'I', 'M', 'S', 'I'};
22
	static byte[] changeIMSI = new byte[] {'C', 'h', 'a', 'n', 'g', 'e', ' ', 'I', 'M', 'S', 'I', ' '};
23
	private Object[] itemListMain = {title, showLU, showIMSI, changeIMSI};
20
	private static final byte[] showLU = new byte[] {'S', 'h', 'o', 'w', ' ', 'L', 'U', ' ', 'c', 'o', 'u', 'n', 't', 'e', 'r'};
21
	private static final byte[] showIMSI = new byte[] {'S', 'h', 'o', 'w', ' ', 'I', 'M', 'S', 'I'};
22
	private static final byte[] changeIMSI = new byte[] {'C', 'h', 'a', 'n', 'g', 'e', ' ', 'I', 'M', 'S', 'I', ' '};
23
	private final Object[] itemListMain = {title, showLU, showIMSI, changeIMSI};
24 24

  
25 25
	/* Change IMSI menu */
26
	static byte[] setDigit1 = new byte[] {'S', 'e', 't', ' ', '1', ' ', 'a', 's', ' ', 'l', 'a', 's', 't', ' ',
26
	private static final byte[] setDigit1 = new byte[] {'S', 'e', 't', ' ', '1', ' ', 'a', 's', ' ', 'l', 'a', 's', 't', ' ',
27 27
						  'd', 'i', 'g', 'i', 't'};
28
	static byte[] setDigit2 = new byte[] {'S', 'e', 't', ' ', '2', ' ', 'a', 's', ' ', 'l', 'a', 's', 't', ' ',
28
	private static final byte[] setDigit2 = new byte[] {'S', 'e', 't', ' ', '2', ' ', 'a', 's', ' ', 'l', 'a', 's', 't', ' ',
29 29
						  'd', 'i', 'g', 'i', 't'};
30
	private Object[] itemListChangeIMSI = {changeIMSI, setDigit1, setDigit2};
30
	private final Object[] itemListChangeIMSI = {changeIMSI, setDigit1, setDigit2};
31 31

  
32 32
	private IMSIPseudo() {
33 33
		gsmFile = SIMSystem.getTheSIMView();

Also available in: Unified diff

Add picture from clipboard (Maximum size: 48.8 MB)