Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Zero.Ki
Pinpoint
提交
78b2239b
P
Pinpoint
项目概览
Zero.Ki
/
Pinpoint
通知
4
Star
1
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
Pinpoint
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
78b2239b
编写于
3月 15, 2021
作者:
W
Woonduk Kang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[#noissue] Cleanup DataType mapper
上级
5354905c
变更
10
隐藏空白更改
内联
并排
Showing
10 changed file
with
123 addition
and
108 deletion
+123
-108
commons-server/src/main/java/com/navercorp/pinpoint/common/server/bo/AnnotationTranscoder.java
...rcorp/pinpoint/common/server/bo/AnnotationTranscoder.java
+14
-10
commons/src/main/java/com/navercorp/pinpoint/common/util/DataType.java
...ain/java/com/navercorp/pinpoint/common/util/DataType.java
+7
-0
commons/src/main/java/com/navercorp/pinpoint/common/util/IntBooleanIntBooleanValue.java
...rcorp/pinpoint/common/util/IntBooleanIntBooleanValue.java
+1
-1
commons/src/main/java/com/navercorp/pinpoint/common/util/IntStringStringValue.java
.../navercorp/pinpoint/common/util/IntStringStringValue.java
+1
-1
commons/src/main/java/com/navercorp/pinpoint/common/util/IntStringValue.java
...va/com/navercorp/pinpoint/common/util/IntStringValue.java
+1
-1
commons/src/main/java/com/navercorp/pinpoint/common/util/LongIntIntByteByteStringValue.java
...p/pinpoint/common/util/LongIntIntByteByteStringValue.java
+1
-1
commons/src/main/java/com/navercorp/pinpoint/common/util/StringStringValue.java
...com/navercorp/pinpoint/common/util/StringStringValue.java
+1
-1
profiler/src/main/java/com/navercorp/pinpoint/profiler/context/grpc/GrpcAnnotationValueMapper.java
...oint/profiler/context/grpc/GrpcAnnotationValueMapper.java
+34
-34
profiler/src/main/java/com/navercorp/pinpoint/profiler/context/thrift/AnnotationValueThriftMapper.java
.../profiler/context/thrift/AnnotationValueThriftMapper.java
+47
-48
profiler/src/main/java/com/navercorp/pinpoint/profiler/util/AnnotationValueMapper.java
...vercorp/pinpoint/profiler/util/AnnotationValueMapper.java
+16
-11
未找到文件。
commons-server/src/main/java/com/navercorp/pinpoint/common/server/bo/AnnotationTranscoder.java
浏览文件 @
78b2239b
...
@@ -22,6 +22,7 @@ import com.navercorp.pinpoint.common.buffer.Buffer;
...
@@ -22,6 +22,7 @@ import com.navercorp.pinpoint.common.buffer.Buffer;
import
com.navercorp.pinpoint.common.buffer.FixedBuffer
;
import
com.navercorp.pinpoint.common.buffer.FixedBuffer
;
import
com.navercorp.pinpoint.common.profiler.encoding.BitFieldUtils
;
import
com.navercorp.pinpoint.common.profiler.encoding.BitFieldUtils
;
import
com.navercorp.pinpoint.common.util.BytesUtils
;
import
com.navercorp.pinpoint.common.util.BytesUtils
;
import
com.navercorp.pinpoint.common.util.DataType
;
import
com.navercorp.pinpoint.common.util.IntBooleanIntBooleanValue
;
import
com.navercorp.pinpoint.common.util.IntBooleanIntBooleanValue
;
import
com.navercorp.pinpoint.common.util.IntStringStringValue
;
import
com.navercorp.pinpoint.common.util.IntStringStringValue
;
import
com.navercorp.pinpoint.common.util.IntStringValue
;
import
com.navercorp.pinpoint.common.util.IntStringValue
;
...
@@ -132,16 +133,19 @@ public class AnnotationTranscoder {
...
@@ -132,16 +133,19 @@ public class AnnotationTranscoder {
return
CODE_BOOLEAN_FALSE
;
return
CODE_BOOLEAN_FALSE
;
}
else
if
(
o
instanceof
byte
[])
{
}
else
if
(
o
instanceof
byte
[])
{
return
CODE_BYTEARRAY
;
return
CODE_BYTEARRAY
;
}
else
if
(
o
instanceof
IntStringValue
)
{
}
return
CODE_INT_STRING
;
if
(
o
instanceof
DataType
)
{
}
else
if
(
o
instanceof
IntStringStringValue
)
{
if
(
o
instanceof
IntStringValue
)
{
return
CODE_INT_STRING_STRING
;
return
CODE_INT_STRING
;
}
else
if
(
o
instanceof
StringStringValue
)
{
}
else
if
(
o
instanceof
IntStringStringValue
)
{
return
CODE_STRING_STRING
;
return
CODE_INT_STRING_STRING
;
}
else
if
(
o
instanceof
LongIntIntByteByteStringValue
)
{
}
else
if
(
o
instanceof
StringStringValue
)
{
return
CODE_LONG_INT_INT_BYTE_BYTE_STRING
;
return
CODE_STRING_STRING
;
}
else
if
(
o
instanceof
IntBooleanIntBooleanValue
)
{
}
else
if
(
o
instanceof
LongIntIntByteByteStringValue
)
{
return
CODE_INT_BOOLEAN_INT_BOOLEAN
;
return
CODE_LONG_INT_INT_BYTE_BYTE_STRING
;
}
else
if
(
o
instanceof
IntBooleanIntBooleanValue
)
{
return
CODE_INT_BOOLEAN_INT_BOOLEAN
;
}
}
}
return
CODE_TOSTRING
;
return
CODE_TOSTRING
;
}
}
...
...
commons/src/main/java/com/navercorp/pinpoint/common/util/DataType.java
0 → 100644
浏览文件 @
78b2239b
package
com.navercorp.pinpoint.common.util
;
/**
* maker interface
*/
public
interface
DataType
{
}
commons/src/main/java/com/navercorp/pinpoint/common/util/IntBooleanIntBooleanValue.java
浏览文件 @
78b2239b
...
@@ -19,7 +19,7 @@ package com.navercorp.pinpoint.common.util;
...
@@ -19,7 +19,7 @@ package com.navercorp.pinpoint.common.util;
/**
/**
* @author jaehong.kim
* @author jaehong.kim
*/
*/
public
class
IntBooleanIntBooleanValue
{
public
class
IntBooleanIntBooleanValue
implements
DataType
{
private
final
int
intValue1
;
private
final
int
intValue1
;
private
final
boolean
booleanValue1
;
private
final
boolean
booleanValue1
;
private
final
int
intValue2
;
private
final
int
intValue2
;
...
...
commons/src/main/java/com/navercorp/pinpoint/common/util/IntStringStringValue.java
浏览文件 @
78b2239b
...
@@ -19,7 +19,7 @@ package com.navercorp.pinpoint.common.util;
...
@@ -19,7 +19,7 @@ package com.navercorp.pinpoint.common.util;
/**
/**
* @author emeroad
* @author emeroad
*/
*/
public
class
IntStringStringValue
{
public
class
IntStringStringValue
implements
DataType
{
private
final
int
intValue
;
private
final
int
intValue
;
private
final
String
stringValue1
;
private
final
String
stringValue1
;
private
final
String
stringValue2
;
private
final
String
stringValue2
;
...
...
commons/src/main/java/com/navercorp/pinpoint/common/util/IntStringValue.java
浏览文件 @
78b2239b
...
@@ -19,7 +19,7 @@ package com.navercorp.pinpoint.common.util;
...
@@ -19,7 +19,7 @@ package com.navercorp.pinpoint.common.util;
/**
/**
* @author emeroad
* @author emeroad
*/
*/
public
class
IntStringValue
{
public
class
IntStringValue
implements
DataType
{
private
final
int
intValue
;
private
final
int
intValue
;
private
final
String
stringValue
;
private
final
String
stringValue
;
...
...
commons/src/main/java/com/navercorp/pinpoint/common/util/LongIntIntByteByteStringValue.java
浏览文件 @
78b2239b
...
@@ -19,7 +19,7 @@ package com.navercorp.pinpoint.common.util;
...
@@ -19,7 +19,7 @@ package com.navercorp.pinpoint.common.util;
/**
/**
* @author jaehong.kim
* @author jaehong.kim
*/
*/
public
class
LongIntIntByteByteStringValue
{
public
class
LongIntIntByteByteStringValue
implements
DataType
{
private
final
long
longValue
;
private
final
long
longValue
;
private
final
int
intValue1
;
private
final
int
intValue1
;
private
final
int
intValue2
;
private
final
int
intValue2
;
...
...
commons/src/main/java/com/navercorp/pinpoint/common/util/StringStringValue.java
浏览文件 @
78b2239b
...
@@ -19,7 +19,7 @@ package com.navercorp.pinpoint.common.util;
...
@@ -19,7 +19,7 @@ package com.navercorp.pinpoint.common.util;
/**
/**
* @author Roy Kim
* @author Roy Kim
*/
*/
public
class
StringStringValue
{
public
class
StringStringValue
implements
DataType
{
private
final
String
stringValue1
;
private
final
String
stringValue1
;
private
final
String
stringValue2
;
private
final
String
stringValue2
;
...
...
profiler/src/main/java/com/navercorp/pinpoint/profiler/context/grpc/GrpcAnnotationValueMapper.java
浏览文件 @
78b2239b
...
@@ -18,6 +18,7 @@ package com.navercorp.pinpoint.profiler.context.grpc;
...
@@ -18,6 +18,7 @@ package com.navercorp.pinpoint.profiler.context.grpc;
import
com.google.protobuf.ByteString
;
import
com.google.protobuf.ByteString
;
import
com.google.protobuf.StringValue
;
import
com.google.protobuf.StringValue
;
import
com.navercorp.pinpoint.common.util.DataType
;
import
com.navercorp.pinpoint.common.util.IntBooleanIntBooleanValue
;
import
com.navercorp.pinpoint.common.util.IntBooleanIntBooleanValue
;
import
com.navercorp.pinpoint.common.util.IntStringStringValue
;
import
com.navercorp.pinpoint.common.util.IntStringStringValue
;
import
com.navercorp.pinpoint.common.util.IntStringValue
;
import
com.navercorp.pinpoint.common.util.IntStringValue
;
...
@@ -89,45 +90,44 @@ public class GrpcAnnotationValueMapper {
...
@@ -89,45 +90,44 @@ public class GrpcAnnotationValueMapper {
return
builder
.
build
();
return
builder
.
build
();
}
}
if
(
value
instanceof
IntStringValue
)
{
if
(
value
instanceof
DataType
)
{
final
IntStringValue
v
=
(
IntStringValue
)
value
;
if
(
value
instanceof
IntStringValue
)
{
PIntStringValue
pIntStringValue
=
newIntStringValue
(
v
);
final
IntStringValue
v
=
(
IntStringValue
)
value
;
PIntStringValue
pIntStringValue
=
newIntStringValue
(
v
);
PAnnotationValue
.
Builder
builder
=
getAnnotationBuilder
();
PAnnotationValue
.
Builder
builder
=
getAnnotationBuilder
();
builder
.
setIntStringValue
(
pIntStringValue
);
builder
.
setIntStringValue
(
pIntStringValue
);
return
builder
.
build
();
return
builder
.
build
();
}
}
else
if
(
value
instanceof
StringStringValue
)
{
if
(
value
instanceof
StringStringValue
)
{
final
StringStringValue
v
=
(
StringStringValue
)
value
;
final
StringStringValue
v
=
(
StringStringValue
)
value
;
PStringStringValue
pStringStringValue
=
newStringStringValue
(
v
);
PStringStringValue
pStringStringValue
=
newStringStringValue
(
v
);
PAnnotationValue
.
Builder
builder
=
getAnnotationBuilder
();
PAnnotationValue
.
Builder
builder
=
getAnnotationBuilder
();
builder
.
setStringStringValue
(
pStringStringValue
);
builder
.
setStringStringValue
(
pStringStringValue
);
return
builder
.
build
();
return
builder
.
build
();
}
}
else
if
(
value
instanceof
IntStringStringValue
)
{
if
(
value
instanceof
IntStringStringValue
)
{
final
IntStringStringValue
v
=
(
IntStringStringValue
)
value
;
final
IntStringStringValue
v
=
(
IntStringStringValue
)
value
;
final
PIntStringStringValue
pIntStringStringValue
=
newIntStringStringValue
(
v
);
final
PIntStringStringValue
pIntStringStringValue
=
newIntStringStringValue
(
v
);
PAnnotationValue
.
Builder
builder
=
getAnnotationBuilder
();
PAnnotationValue
.
Builder
builder
=
getAnnotationBuilder
();
builder
.
setIntStringStringValue
(
pIntStringStringValue
);
builder
.
setIntStringStringValue
(
pIntStringStringValue
);
return
builder
.
build
();
return
builder
.
build
();
}
else
if
(
value
instanceof
LongIntIntByteByteStringValue
)
{
}
final
LongIntIntByteByteStringValue
v
=
(
LongIntIntByteByteStringValue
)
value
;
if
(
value
instanceof
LongIntIntByteByteStringValue
)
{
final
PLongIntIntByteByteStringValue
pValue
=
newLongIntIntByteByteStringValue
(
v
);
final
LongIntIntByteByteStringValue
v
=
(
LongIntIntByteByteStringValue
)
value
;
final
PLongIntIntByteByteStringValue
pValue
=
newLongIntIntByteByteStringValue
(
v
);
PAnnotationValue
.
Builder
builder
=
getAnnotationBuilder
();
PAnnotationValue
.
Builder
builder
=
getAnnotationBuilder
();
builder
.
setLongIntIntByteByteStringValue
(
pValue
);
builder
.
setLongIntIntByteByteStringValue
(
pValue
);
return
builder
.
build
();
return
builder
.
build
();
}
}
else
if
(
value
instanceof
IntBooleanIntBooleanValue
)
{
if
(
value
instanceof
IntBooleanIntBooleanValue
)
{
final
IntBooleanIntBooleanValue
v
=
(
IntBooleanIntBooleanValue
)
value
;
final
IntBooleanIntBooleanValue
v
=
(
IntBooleanIntBooleanValue
)
value
;
final
PIntBooleanIntBooleanValue
pValue
=
newIntBooleanIntBooleanValue
(
v
)
;
final
PIntBooleanIntBooleanValue
pValue
=
newIntBooleanIntBooleanValue
(
v
);
PAnnotationValue
.
Builder
builder
=
getAnnotationBuilder
(
);
PAnnotationValue
.
Builder
builder
=
getAnnotationBuilder
(
);
builder
.
setIntBooleanIntBooleanValue
(
pValue
);
builder
.
setIntBooleanIntBooleanValue
(
pValue
);
return
builder
.
build
(
);
return
builder
.
build
();
}
}
}
if
(
value
instanceof
TBase
)
{
if
(
value
instanceof
TBase
)
{
throw
new
IllegalArgumentException
(
"TBase not supported. Class:"
+
value
.
getClass
());
throw
new
IllegalArgumentException
(
"TBase not supported. Class:"
+
value
.
getClass
());
}
}
...
...
profiler/src/main/java/com/navercorp/pinpoint/profiler/context/thrift/AnnotationValueThriftMapper.java
浏览文件 @
78b2239b
...
@@ -16,6 +16,7 @@
...
@@ -16,6 +16,7 @@
package
com.navercorp.pinpoint.profiler.context.thrift
;
package
com.navercorp.pinpoint.profiler.context.thrift
;
import
com.navercorp.pinpoint.common.util.DataType
;
import
com.navercorp.pinpoint.common.util.IntBooleanIntBooleanValue
;
import
com.navercorp.pinpoint.common.util.IntBooleanIntBooleanValue
;
import
com.navercorp.pinpoint.common.util.IntStringStringValue
;
import
com.navercorp.pinpoint.common.util.IntStringStringValue
;
import
com.navercorp.pinpoint.common.util.IntStringValue
;
import
com.navercorp.pinpoint.common.util.IntStringValue
;
...
@@ -63,56 +64,54 @@ public class AnnotationValueThriftMapper {
...
@@ -63,56 +64,54 @@ public class AnnotationValueThriftMapper {
if
(
value
instanceof
byte
[])
{
if
(
value
instanceof
byte
[])
{
return
TAnnotationValue
.
binaryValue
((
byte
[])
value
);
return
TAnnotationValue
.
binaryValue
((
byte
[])
value
);
}
}
if
(
value
instanceof
DataType
)
{
if
(
value
instanceof
IntStringValue
)
{
if
(
value
instanceof
IntStringValue
)
{
final
IntStringValue
v
=
(
IntStringValue
)
value
;
final
IntStringValue
v
=
(
IntStringValue
)
value
;
final
TIntStringValue
tIntStringValue
=
new
TIntStringValue
(
v
.
getIntValue
());
final
TIntStringValue
tIntStringValue
=
new
TIntStringValue
(
v
.
getIntValue
());
if
(
v
.
getStringValue
()
!=
null
)
{
if
(
v
.
getStringValue
()
!=
null
)
{
tIntStringValue
.
setStringValue
(
v
.
getStringValue
());
tIntStringValue
.
setStringValue
(
v
.
getStringValue
());
}
}
return
TAnnotationValue
.
intStringValue
(
tIntStringValue
);
return
TAnnotationValue
.
intStringValue
(
tIntStringValue
);
}
}
else
if
(
value
instanceof
StringStringValue
)
{
if
(
value
instanceof
StringStringValue
)
{
final
StringStringValue
v
=
(
StringStringValue
)
value
;
final
StringStringValue
v
=
(
StringStringValue
)
value
;
final
TStringStringValue
tStringStringValue
=
new
TStringStringValue
(
v
.
getStringValue1
());
final
TStringStringValue
tStringStringValue
=
new
TStringStringValue
(
v
.
getStringValue1
());
if
(
v
.
getStringValue2
()
!=
null
)
{
if
(
v
.
getStringValue2
()
!=
null
)
{
tStringStringValue
.
setStringValue2
(
v
.
getStringValue2
());
tStringStringValue
.
setStringValue2
(
v
.
getStringValue2
());
}
return
TAnnotationValue
.
stringStringValue
(
tStringStringValue
);
}
else
if
(
value
instanceof
IntStringStringValue
)
{
final
IntStringStringValue
v
=
(
IntStringStringValue
)
value
;
final
TIntStringStringValue
tIntStringStringValue
=
new
TIntStringStringValue
(
v
.
getIntValue
());
if
(
v
.
getStringValue1
()
!=
null
)
{
tIntStringStringValue
.
setStringValue1
(
v
.
getStringValue1
());
}
if
(
v
.
getStringValue2
()
!=
null
)
{
tIntStringStringValue
.
setStringValue2
(
v
.
getStringValue2
());
}
return
TAnnotationValue
.
intStringStringValue
(
tIntStringStringValue
);
}
else
if
(
value
instanceof
LongIntIntByteByteStringValue
)
{
final
LongIntIntByteByteStringValue
v
=
(
LongIntIntByteByteStringValue
)
value
;
final
TLongIntIntByteByteStringValue
tvalue
=
new
TLongIntIntByteByteStringValue
(
v
.
getLongValue
(),
v
.
getIntValue1
());
if
(
v
.
getIntValue2
()
!=
-
1
)
{
tvalue
.
setIntValue2
(
v
.
getIntValue2
());
}
if
(
v
.
getByteValue1
()
!=
-
1
)
{
tvalue
.
setByteValue1
(
v
.
getByteValue1
());
}
if
(
v
.
getByteValue2
()
!=
-
1
)
{
tvalue
.
setByteValue2
(
v
.
getByteValue2
());
}
if
(
v
.
getStringValue
()
!=
null
)
{
tvalue
.
setStringValue
(
v
.
getStringValue
());
}
return
TAnnotationValue
.
longIntIntByteByteStringValue
(
tvalue
);
}
else
if
(
value
instanceof
IntBooleanIntBooleanValue
)
{
final
IntBooleanIntBooleanValue
v
=
(
IntBooleanIntBooleanValue
)
value
;
final
TIntBooleanIntBooleanValue
tvalue
=
new
TIntBooleanIntBooleanValue
(
v
.
getIntValue1
(),
v
.
isBooleanValue1
(),
v
.
getIntValue2
(),
v
.
isBooleanValue2
());
return
TAnnotationValue
.
intBooleanIntBooleanValue
(
tvalue
);
}
}
return
TAnnotationValue
.
stringStringValue
(
tStringStringValue
);
}
if
(
value
instanceof
IntStringStringValue
)
{
final
IntStringStringValue
v
=
(
IntStringStringValue
)
value
;
final
TIntStringStringValue
tIntStringStringValue
=
new
TIntStringStringValue
(
v
.
getIntValue
());
if
(
v
.
getStringValue1
()
!=
null
)
{
tIntStringStringValue
.
setStringValue1
(
v
.
getStringValue1
());
}
if
(
v
.
getStringValue2
()
!=
null
)
{
tIntStringStringValue
.
setStringValue2
(
v
.
getStringValue2
());
}
return
TAnnotationValue
.
intStringStringValue
(
tIntStringStringValue
);
}
if
(
value
instanceof
LongIntIntByteByteStringValue
)
{
final
LongIntIntByteByteStringValue
v
=
(
LongIntIntByteByteStringValue
)
value
;
final
TLongIntIntByteByteStringValue
tvalue
=
new
TLongIntIntByteByteStringValue
(
v
.
getLongValue
(),
v
.
getIntValue1
());
if
(
v
.
getIntValue2
()
!=
-
1
)
{
tvalue
.
setIntValue2
(
v
.
getIntValue2
());
}
if
(
v
.
getByteValue1
()
!=
-
1
)
{
tvalue
.
setByteValue1
(
v
.
getByteValue1
());
}
if
(
v
.
getByteValue2
()
!=
-
1
)
{
tvalue
.
setByteValue2
(
v
.
getByteValue2
());
}
if
(
v
.
getStringValue
()
!=
null
)
{
tvalue
.
setStringValue
(
v
.
getStringValue
());
}
return
TAnnotationValue
.
longIntIntByteByteStringValue
(
tvalue
);
}
if
(
value
instanceof
IntBooleanIntBooleanValue
)
{
final
IntBooleanIntBooleanValue
v
=
(
IntBooleanIntBooleanValue
)
value
;
final
TIntBooleanIntBooleanValue
tvalue
=
new
TIntBooleanIntBooleanValue
(
v
.
getIntValue1
(),
v
.
isBooleanValue1
(),
v
.
getIntValue2
(),
v
.
isBooleanValue2
());
return
TAnnotationValue
.
intBooleanIntBooleanValue
(
tvalue
);
}
}
if
(
value
instanceof
TBase
)
{
if
(
value
instanceof
TBase
)
{
throw
new
IllegalArgumentException
(
"TBase not supported. Class:"
+
value
.
getClass
());
throw
new
IllegalArgumentException
(
"TBase not supported. Class:"
+
value
.
getClass
());
}
}
...
...
profiler/src/main/java/com/navercorp/pinpoint/profiler/util/AnnotationValueMapper.java
浏览文件 @
78b2239b
...
@@ -17,6 +17,7 @@
...
@@ -17,6 +17,7 @@
package
com.navercorp.pinpoint.profiler.util
;
package
com.navercorp.pinpoint.profiler.util
;
import
com.navercorp.pinpoint.common.util.DataType
;
import
com.navercorp.pinpoint.common.util.IntBooleanIntBooleanValue
;
import
com.navercorp.pinpoint.common.util.IntBooleanIntBooleanValue
;
import
com.navercorp.pinpoint.common.util.IntStringStringValue
;
import
com.navercorp.pinpoint.common.util.IntStringStringValue
;
import
com.navercorp.pinpoint.common.util.IntStringValue
;
import
com.navercorp.pinpoint.common.util.IntStringValue
;
...
@@ -59,17 +60,21 @@ public final class AnnotationValueMapper {
...
@@ -59,17 +60,21 @@ public final class AnnotationValueMapper {
return
value
;
return
value
;
}
else
if
(
value
instanceof
byte
[])
{
}
else
if
(
value
instanceof
byte
[])
{
return
value
;
return
value
;
}
else
if
(
value
instanceof
IntStringValue
)
{
}
return
value
;
if
(
value
instanceof
DataType
)
{
}
else
if
(
value
instanceof
IntStringStringValue
)
{
if
(
value
instanceof
IntStringValue
)
{
return
value
;
return
value
;
}
else
if
(
value
instanceof
LongIntIntByteByteStringValue
)
{
}
else
if
(
value
instanceof
IntStringStringValue
)
{
return
value
;
return
value
;
}
else
if
(
value
instanceof
IntBooleanIntBooleanValue
)
{
}
else
if
(
value
instanceof
LongIntIntByteByteStringValue
)
{
return
value
;
return
value
;
}
else
if
(
value
instanceof
StringStringValue
)
{
}
else
if
(
value
instanceof
IntBooleanIntBooleanValue
)
{
return
value
;
return
value
;
}
else
if
(
value
instanceof
TBase
)
{
}
else
if
(
value
instanceof
StringStringValue
)
{
return
value
;
}
}
if
(
value
instanceof
TBase
)
{
throw
new
IllegalArgumentException
(
"TBase not supported. Class:"
+
value
.
getClass
());
throw
new
IllegalArgumentException
(
"TBase not supported. Class:"
+
value
.
getClass
());
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录