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
6fc25a30
Commit
6fc25a30
authored
Feb 16, 2020
by
Stephane Nicoll
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #20192 from zhangt2333
* pr/20192: Update copyright date Polish Closes gh-20192
parents
ff4de95b
03bee839
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
21 deletions
+9
-21
ApiVersion.java
...pringframework/boot/actuate/endpoint/http/ApiVersion.java
+2
-2
ProjectGenerator.java
...ringframework/boot/cli/command/init/ProjectGenerator.java
+2
-5
DependencyCustomizer.java
...ringframework/boot/cli/compiler/DependencyCustomizer.java
+2
-8
MainClassFinder.java
...rg/springframework/boot/loader/tools/MainClassFinder.java
+2
-5
ClassPathIndexFile.java
...a/org/springframework/boot/loader/ClassPathIndexFile.java
+1
-1
No files found.
spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/http/ApiVersion.java
View file @
6fc25a30
/*
* Copyright 2012-20
19
the original author or authors.
* Copyright 2012-20
20
the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
...
...
@@ -70,7 +70,7 @@ public enum ApiVersion {
private
static
ApiVersion
forType
(
String
type
)
{
if
(
type
.
startsWith
(
MEDIA_TYPE_PREFIX
))
{
type
=
type
.
substring
(
MEDIA_TYPE_PREFIX
.
length
());
int
suffixIndex
=
type
.
indexOf
(
"+"
);
int
suffixIndex
=
type
.
indexOf
(
'+'
);
type
=
(
suffixIndex
!=
-
1
)
?
type
.
substring
(
0
,
suffixIndex
)
:
type
;
try
{
return
valueOf
(
type
.
toUpperCase
());
...
...
spring-boot-project/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/init/ProjectGenerator.java
View file @
6fc25a30
/*
* Copyright 2012-20
19
the original author or authors.
* Copyright 2012-20
20
the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
...
...
@@ -74,10 +74,7 @@ class ProjectGenerator {
return
true
;
}
// explicit name hasn't been provided for an archive and there is no extension
if
(
isZipArchive
(
response
)
&&
request
.
getOutput
()
!=
null
&&
!
request
.
getOutput
().
contains
(
"."
))
{
return
true
;
}
return
false
;
return
isZipArchive
(
response
)
&&
request
.
getOutput
()
!=
null
&&
!
request
.
getOutput
().
contains
(
"."
);
}
private
boolean
isZipArchive
(
ProjectGenerationResponse
entity
)
{
...
...
spring-boot-project/spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/DependencyCustomizer.java
View file @
6fc25a30
...
...
@@ -140,10 +140,7 @@ public class DependencyCustomizer {
protected
boolean
canAdd
()
{
for
(
String
path
:
paths
)
{
try
{
if
(
DependencyCustomizer
.
this
.
loader
.
getResource
(
path
)
==
null
)
{
return
false
;
}
return
true
;
return
DependencyCustomizer
.
this
.
loader
.
getResource
(
path
)
!=
null
;
}
catch
(
Exception
ex
)
{
// swallow exception and continue
...
...
@@ -166,10 +163,7 @@ public class DependencyCustomizer {
protected
boolean
canAdd
()
{
for
(
String
path
:
paths
)
{
try
{
if
(
DependencyCustomizer
.
this
.
loader
.
getResource
(
path
)
!=
null
)
{
return
true
;
}
return
false
;
return
DependencyCustomizer
.
this
.
loader
.
getResource
(
path
)
!=
null
;
}
catch
(
Exception
ex
)
{
// swallow exception and continue
...
...
spring-boot-project/spring-boot-tools/spring-boot-loader-tools/src/main/java/org/springframework/boot/loader/tools/MainClassFinder.java
View file @
6fc25a30
/*
* Copyright 2012-20
19
the original author or authors.
* Copyright 2012-20
20
the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
...
...
@@ -381,10 +381,7 @@ public abstract class MainClassFinder {
return
false
;
}
MainClass
other
=
(
MainClass
)
obj
;
if
(!
this
.
name
.
equals
(
other
.
name
))
{
return
false
;
}
return
true
;
return
this
.
name
.
equals
(
other
.
name
);
}
@Override
...
...
spring-boot-project/spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/ClassPathIndexFile.java
View file @
6fc25a30
...
...
@@ -54,7 +54,7 @@ final class ClassPathIndexFile {
}
private
String
getFolder
(
String
name
)
{
int
lastSlash
=
name
.
lastIndexOf
(
"/"
);
int
lastSlash
=
name
.
lastIndexOf
(
'/'
);
return
(
lastSlash
!=
-
1
)
?
name
.
substring
(
0
,
lastSlash
)
:
null
;
}
...
...
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