Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DEMO
spring-boot
Commits
a688613f
Commit
a688613f
authored
Oct 29, 2017
by
Stephane Nicoll
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '1.5.x'
parents
813a6966
37d229b1
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
6 deletions
+6
-6
JsonReader.java
...pringframework/boot/configurationmetadata/JsonReader.java
+1
-1
DefaultLaunchScript.java
...pringframework/boot/loader/tools/DefaultLaunchScript.java
+1
-1
JarWriter.java
...java/org/springframework/boot/loader/tools/JarWriter.java
+2
-2
TestJarFile.java
...va/org/springframework/boot/loader/tools/TestJarFile.java
+1
-1
JarFileArchive.java
...g/springframework/boot/loader/archive/JarFileArchive.java
+1
-1
No files found.
spring-boot-project/spring-boot-tools/spring-boot-configuration-metadata/src/main/java/org/springframework/boot/configurationmetadata/JsonReader.java
View file @
a688613f
...
...
@@ -209,7 +209,7 @@ class JsonReader {
StringBuilder
out
=
new
StringBuilder
();
InputStreamReader
reader
=
new
InputStreamReader
(
in
,
charset
);
char
[]
buffer
=
new
char
[
BUFFER_SIZE
];
int
bytesRead
=
-
1
;
int
bytesRead
;
while
((
bytesRead
=
reader
.
read
(
buffer
))
!=
-
1
)
{
out
.
append
(
buffer
,
0
,
bytesRead
);
}
...
...
spring-boot-project/spring-boot-tools/spring-boot-loader-tools/src/main/java/org/springframework/boot/loader/tools/DefaultLaunchScript.java
View file @
a688613f
...
...
@@ -86,7 +86,7 @@ public class DefaultLaunchScript implements LaunchScript {
private
void
copy
(
InputStream
inputStream
,
OutputStream
outputStream
)
throws
IOException
{
byte
[]
buffer
=
new
byte
[
BUFFER_SIZE
];
int
bytesRead
=
-
1
;
int
bytesRead
;
while
((
bytesRead
=
inputStream
.
read
(
buffer
))
!=
-
1
)
{
outputStream
.
write
(
buffer
,
0
,
bytesRead
);
}
...
...
spring-boot-project/spring-boot-tools/spring-boot-loader-tools/src/main/java/org/springframework/boot/loader/tools/JarWriter.java
View file @
a688613f
...
...
@@ -300,7 +300,7 @@ public class JarWriter implements LoaderClassesWriter, AutoCloseable {
@Override
public
void
write
(
OutputStream
outputStream
)
throws
IOException
{
byte
[]
buffer
=
new
byte
[
BUFFER_SIZE
];
int
bytesRead
=
-
1
;
int
bytesRead
;
while
((
bytesRead
=
this
.
inputStream
.
read
(
buffer
))
!=
-
1
)
{
outputStream
.
write
(
buffer
,
0
,
bytesRead
);
}
...
...
@@ -383,7 +383,7 @@ public class JarWriter implements LoaderClassesWriter, AutoCloseable {
private
void
load
(
InputStream
inputStream
)
throws
IOException
{
byte
[]
buffer
=
new
byte
[
BUFFER_SIZE
];
int
bytesRead
=
-
1
;
int
bytesRead
;
while
((
bytesRead
=
inputStream
.
read
(
buffer
))
!=
-
1
)
{
this
.
crc
.
update
(
buffer
,
0
,
bytesRead
);
this
.
size
+=
bytesRead
;
...
...
spring-boot-project/spring-boot-tools/spring-boot-loader-tools/src/test/java/org/springframework/boot/loader/tools/TestJarFile.java
View file @
a688613f
...
...
@@ -95,7 +95,7 @@ public class TestJarFile {
}
private
void
copy
(
InputStream
in
,
OutputStream
out
)
throws
IOException
{
int
bytesRead
=
-
1
;
int
bytesRead
;
while
((
bytesRead
=
in
.
read
(
this
.
buffer
))
!=
-
1
)
{
out
.
write
(
this
.
buffer
,
0
,
bytesRead
);
}
...
...
spring-boot-project/spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/archive/JarFileArchive.java
View file @
a688613f
...
...
@@ -149,7 +149,7 @@ public class JarFileArchive implements Archive {
ResourceAccess
.
ONCE
);
OutputStream
outputStream
=
new
FileOutputStream
(
file
))
{
byte
[]
buffer
=
new
byte
[
BUFFER_SIZE
];
int
bytesRead
=
-
1
;
int
bytesRead
;
while
((
bytesRead
=
inputStream
.
read
(
buffer
))
!=
-
1
)
{
outputStream
.
write
(
buffer
,
0
,
bytesRead
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment