UnsupportedDurationField.java
5.09 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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
package org.joda.time.field;
import java.io.Serializable;
import java.util.HashMap;
import org.joda.time.DurationField;
import org.joda.time.DurationFieldType;
public final class UnsupportedDurationField
extends DurationField
implements Serializable
{
private static HashMap<DurationFieldType, UnsupportedDurationField> a;
private static final long serialVersionUID = -6390301302770925357L;
private final DurationFieldType b;
private UnsupportedDurationField(DurationFieldType paramDurationFieldType)
{
this.b = paramDurationFieldType;
}
private UnsupportedOperationException a()
{
return new UnsupportedOperationException(this.b + " field is unsupported");
}
/* Error */
public static UnsupportedDurationField getInstance(DurationFieldType paramDurationFieldType)
{
// Byte code:
// 0: ldc 2
// 2: monitorenter
// 3: getstatic 49 org/joda/time/field/UnsupportedDurationField:a Ljava/util/HashMap;
// 6: ifnonnull +46 -> 52
// 9: new 51 java/util/HashMap
// 12: dup
// 13: bipush 7
// 15: invokespecial 54 java/util/HashMap:<init> (I)V
// 18: putstatic 49 org/joda/time/field/UnsupportedDurationField:a Ljava/util/HashMap;
// 21: aconst_null
// 22: astore_1
// 23: aload_1
// 24: astore_2
// 25: aload_1
// 26: ifnonnull +21 -> 47
// 29: new 2 org/joda/time/field/UnsupportedDurationField
// 32: dup
// 33: aload_0
// 34: invokespecial 56 org/joda/time/field/UnsupportedDurationField:<init> (Lorg/joda/time/DurationFieldType;)V
// 37: astore_2
// 38: getstatic 49 org/joda/time/field/UnsupportedDurationField:a Ljava/util/HashMap;
// 41: aload_0
// 42: aload_2
// 43: invokevirtual 60 java/util/HashMap:put (Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
// 46: pop
// 47: ldc 2
// 49: monitorexit
// 50: aload_2
// 51: areturn
// 52: getstatic 49 org/joda/time/field/UnsupportedDurationField:a Ljava/util/HashMap;
// 55: aload_0
// 56: invokevirtual 64 java/util/HashMap:get (Ljava/lang/Object;)Ljava/lang/Object;
// 59: checkcast 2 org/joda/time/field/UnsupportedDurationField
// 62: astore_1
// 63: goto -40 -> 23
// 66: astore_0
// 67: ldc 2
// 69: monitorexit
// 70: aload_0
// 71: athrow
// Local variable table:
// start length slot name signature
// 0 72 0 paramDurationFieldType DurationFieldType
// 22 41 1 localUnsupportedDurationField1 UnsupportedDurationField
// 24 27 2 localUnsupportedDurationField2 UnsupportedDurationField
// Exception table:
// from to target type
// 3 21 66 finally
// 29 47 66 finally
// 52 63 66 finally
}
private Object readResolve()
{
return getInstance(this.b);
}
public final long add(long paramLong, int paramInt)
{
throw a();
}
public final long add(long paramLong1, long paramLong2)
{
throw a();
}
public final int compareTo(DurationField paramDurationField)
{
return 0;
}
public final boolean equals(Object paramObject)
{
if (this == paramObject) {}
do
{
return true;
if (!(paramObject instanceof UnsupportedDurationField)) {
break label47;
}
paramObject = (UnsupportedDurationField)paramObject;
if (((UnsupportedDurationField)paramObject).getName() != null) {
break;
}
} while (getName() == null);
return false;
return ((UnsupportedDurationField)paramObject).getName().equals(getName());
label47:
return false;
}
public final int getDifference(long paramLong1, long paramLong2)
{
throw a();
}
public final long getDifferenceAsLong(long paramLong1, long paramLong2)
{
throw a();
}
public final long getMillis(int paramInt)
{
throw a();
}
public final long getMillis(int paramInt, long paramLong)
{
throw a();
}
public final long getMillis(long paramLong)
{
throw a();
}
public final long getMillis(long paramLong1, long paramLong2)
{
throw a();
}
public final String getName()
{
return this.b.getName();
}
public final DurationFieldType getType()
{
return this.b;
}
public final long getUnitMillis()
{
return 0L;
}
public final int getValue(long paramLong)
{
throw a();
}
public final int getValue(long paramLong1, long paramLong2)
{
throw a();
}
public final long getValueAsLong(long paramLong)
{
throw a();
}
public final long getValueAsLong(long paramLong1, long paramLong2)
{
throw a();
}
public final int hashCode()
{
return getName().hashCode();
}
public final boolean isPrecise()
{
return true;
}
public final boolean isSupported()
{
return false;
}
public final String toString()
{
return "UnsupportedDurationField[" + getName() + ']';
}
}
/* Location: /home/merong/decompile/hackery-dex2jar.jar!/org/joda/time/field/UnsupportedDurationField.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/