Skip to content

#346 / #336 / #350: Drop Java 1.7 support / introduce a timeout for any native git command / replace almost every guava feature with Java 8 features #382

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 25 commits into from
Sep 13, 2018

Conversation

TheSnoozer
Copy link
Collaborator

@TheSnoozer TheSnoozer commented Sep 1, 2018

This changing with this MR:

@TheSnoozer TheSnoozer added this to the 3.0 milestone Sep 1, 2018
pom.xml Outdated
<artifactId>annotations</artifactId>
<version>12.0</version>
<version>16.0.2</version>
</dependency>
Copy link
Collaborator Author

@TheSnoozer TheSnoozer Sep 1, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alternatively we could use

<dependency>
		<groupId>com.google.code.findbugs</groupId>
		 <artifactId>jsr305</artifactId>
		 <version>3.0.2</version>
</dependency>

However, technically I don't see a huge benefit in changing this...the findbugs one might look more native java like...

TheSnoozer added 4 commits September 1, 2018 13:26
- replace com.google.common.base.Optional with java.util.Optional
- replace com.google.common.base.Joiner with java.util.StringJoiner or String.join
- replace com.google.common.base.MoreObjects with java.util.Optional
- replace Preconditions.checkArgument(arg != null, ...) with java.util.Objects.requireNonNull(arg)
- replace various com.google.common.base.{Function, Predicate, Predicates} code snippets with lambda expressions
- replace com.google.common.io.Closeables with java's try-with-resources
@TheSnoozer TheSnoozer changed the title #346 / #336 Drop Java 1.7 support and introduce a timeout for any native git command #346 / #336 / #350: Drop Java 1.7 support / introduce a timeout for any native git command / replace almost every guava feature with Java 8 features Sep 1, 2018
TheSnoozer added 2 commits September 1, 2018 19:19
…arname itself; use try-with-resources instead of closing resources with finally; lambda call simplifications)
…5 (annotations that come automatically with guava)
}
return false;
})
.map(tagRef -> tagRef.getName().replaceAll("refs/tags/", ""))
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not use trimFullTagName(tagRef.getName()) here?

This specific Method would use replaceFirst("refs/tags/", "") instead of replaceAll. However AFAIK we are expecting only the start to be refs/tags/.... I think a replaceAll would prevent us from using actual tags that are looking like refs/tags/... (very unlikely that this ever happens). In practice I wouldn't assume it actually makes a difference.

…lt' variable declaration to set them directly inside the tests
…lates based on the circumstances - aka. one template for bugs, one for features and one general template (see https://help.github.com/articles/about-issue-and-pull-request-templates/)
@TheSnoozer TheSnoozer merged commit e6e53e4 into git-commit-id:master Sep 13, 2018
@TheSnoozer TheSnoozer deleted the java8 branch September 13, 2018 03:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant