Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
wd1105040417
retrofit
提交
bd556bd1
R
retrofit
项目概览
wd1105040417
/
retrofit
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
retrofit
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
bd556bd1
编写于
12月 21, 2015
作者:
J
Jake Wharton
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Visibility housekeeping: reduce to least access level.
上级
c7090c9c
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
7 addition
and
6 deletion
+7
-6
retrofit/src/main/java/retrofit2/RequestBuilder.java
retrofit/src/main/java/retrofit2/RequestBuilder.java
+3
-2
retrofit/src/main/java/retrofit2/RequestFactoryParser.java
retrofit/src/main/java/retrofit2/RequestFactoryParser.java
+1
-1
retrofit/src/main/java/retrofit2/Utils.java
retrofit/src/main/java/retrofit2/Utils.java
+3
-3
未找到文件。
retrofit/src/main/java/retrofit2/RequestBuilder.java
浏览文件 @
bd556bd1
...
...
@@ -88,7 +88,7 @@ final class RequestBuilder {
relativeUrl
=
relativeUrl
.
replace
(
"{"
+
name
+
"}"
,
canonicalize
(
value
,
encoded
));
}
static
String
canonicalize
(
String
input
,
boolean
alreadyEncoded
)
{
private
static
String
canonicalize
(
String
input
,
boolean
alreadyEncoded
)
{
int
codePoint
;
for
(
int
i
=
0
,
limit
=
input
.
length
();
i
<
limit
;
i
+=
Character
.
charCount
(
codePoint
))
{
codePoint
=
input
.
codePointAt
(
i
);
...
...
@@ -107,7 +107,8 @@ final class RequestBuilder {
return
input
;
}
static
void
canonicalize
(
Buffer
out
,
String
input
,
int
pos
,
int
limit
,
boolean
alreadyEncoded
)
{
private
static
void
canonicalize
(
Buffer
out
,
String
input
,
int
pos
,
int
limit
,
boolean
alreadyEncoded
)
{
Buffer
utf8Buffer
=
null
;
// Lazily allocated.
int
codePoint
;
for
(
int
i
=
pos
;
i
<
limit
;
i
+=
Character
.
charCount
(
codePoint
))
{
...
...
retrofit/src/main/java/retrofit2/RequestFactoryParser.java
浏览文件 @
bd556bd1
...
...
@@ -531,7 +531,7 @@ final class RequestFactoryParser {
return
patterns
;
}
static
Class
<?>
boxIfPrimitive
(
Class
<?>
type
)
{
private
static
Class
<?>
boxIfPrimitive
(
Class
<?>
type
)
{
if
(
boolean
.
class
==
type
)
return
Boolean
.
class
;
if
(
byte
.
class
==
type
)
return
Byte
.
class
;
if
(
char
.
class
==
type
)
return
Character
.
class
;
...
...
retrofit/src/main/java/retrofit2/Utils.java
浏览文件 @
bd556bd1
...
...
@@ -89,7 +89,7 @@ final class Utils {
}
}
public
static
Type
getParameterUpperBound
(
int
index
,
ParameterizedType
type
)
{
static
Type
getParameterUpperBound
(
int
index
,
ParameterizedType
type
)
{
Type
[]
types
=
type
.
getActualTypeArguments
();
if
(
types
.
length
<=
index
)
{
throw
new
IllegalArgumentException
(
...
...
@@ -102,7 +102,7 @@ final class Utils {
return
paramType
;
}
public
static
boolean
hasUnresolvableType
(
Type
type
)
{
static
boolean
hasUnresolvableType
(
Type
type
)
{
if
(
type
instanceof
Class
<?>)
{
return
false
;
}
...
...
@@ -130,7 +130,7 @@ final class Utils {
}
// This method is copyright 2008 Google Inc. and is taken from Gson under the Apache 2.0 license.
public
static
Class
<?>
getRawType
(
Type
type
)
{
static
Class
<?>
getRawType
(
Type
type
)
{
if
(
type
instanceof
Class
<?>)
{
// Type is a normal class.
return
(
Class
<?>)
type
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录