DefaultNameProvider.java
3.66 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
package org.joda.time.tz;
import java.text.DateFormatSymbols;
import java.util.HashMap;
import java.util.Locale;
import java.util.Map;
import org.joda.time.DateTimeUtils;
public class DefaultNameProvider
implements NameProvider
{
private HashMap<Locale, Map<String, Map<String, Object>>> a = a();
private static HashMap a()
{
return new HashMap(7);
}
private String[] a(Locale paramLocale, String paramString1, String paramString2)
{
Object localObject3 = null;
if ((paramLocale == null) || (paramString1 == null) || (paramString2 == null))
{
paramLocale = null;
return paramLocale;
}
for (;;)
{
int i;
try
{
Object localObject1 = (Map)this.a.get(paramLocale);
if (localObject1 != null) {
break label381;
}
Object localObject2 = this.a;
localObject1 = a();
((HashMap)localObject2).put(paramLocale, localObject1);
Object localObject4 = (Map)((Map)localObject1).get(paramString1);
localObject2 = localObject4;
if (localObject4 == null)
{
localObject4 = a();
((Map)localObject1).put(paramString1, localObject4);
localObject2 = DateTimeUtils.getDateFormatSymbols(Locale.ENGLISH).getZoneStrings();
int j = localObject2.length;
i = 0;
if (i >= j) {
break label375;
}
localObject1 = localObject2[i];
if ((localObject1 == null) || (localObject1.length != 5) || (!paramString1.equals(localObject1[0]))) {
break label384;
}
localObject2 = DateTimeUtils.getDateFormatSymbols(paramLocale).getZoneStrings();
j = localObject2.length;
i = 0;
paramLocale = (Locale)localObject3;
if (i < j)
{
paramLocale = localObject2[i];
if ((paramLocale == null) || (paramLocale.length != 5) || (!paramString1.equals(paramLocale[0]))) {
break label393;
}
}
localObject2 = localObject4;
if (localObject1 != null)
{
localObject2 = localObject4;
if (paramLocale != null)
{
((Map)localObject4).put(localObject1[2], new String[] { paramLocale[2], paramLocale[1] });
if (!localObject1[2].equals(localObject1[4])) {
continue;
}
((Map)localObject4).put(localObject1[4] + "-Summer", new String[] { paramLocale[4], paramLocale[3] });
localObject2 = localObject4;
}
}
}
paramLocale = (String[])((Map)localObject2).get(paramString2);
break;
((Map)localObject4).put(localObject1[4], new String[] { paramLocale[4], paramLocale[3] });
localObject2 = localObject4;
continue;
localObject1 = null;
}
finally {}
label375:
continue;
label381:
continue;
label384:
i += 1;
continue;
label393:
i += 1;
}
}
public String getName(Locale paramLocale, String paramString1, String paramString2)
{
paramLocale = a(paramLocale, paramString1, paramString2);
if (paramLocale == null) {
return null;
}
return paramLocale[1];
}
public String getShortName(Locale paramLocale, String paramString1, String paramString2)
{
paramLocale = a(paramLocale, paramString1, paramString2);
if (paramLocale == null) {
return null;
}
return paramLocale[0];
}
}
/* Location: /home/merong/decompile/hackery-dex2jar.jar!/org/joda/time/tz/DefaultNameProvider.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/