Skip to content

Commit 42eb2ec

Browse files
committed
[MBUILDCACHE-39] Reformat
1 parent 2b71980 commit 42eb2ec

File tree

78 files changed

+4180
-5438
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

78 files changed

+4180
-5438
lines changed

pom.xml

Lines changed: 390 additions & 440 deletions
Large diffs are not rendered by default.

src/main/java/org/apache/maven/buildcache/BuildCacheMojosExecutionStrategy.java

Lines changed: 129 additions & 178 deletions
Large diffs are not rendered by default.

src/main/java/org/apache/maven/buildcache/CacheContext.java

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* "License"); you may not use this file except in compliance
88
* with the License. You may obtain a copy of the License at
99
*
10-
* http://www.apache.org/licenses/LICENSE-2.0
10+
* http://www.apache.org/licenses/LICENSE-2.0
1111
*
1212
* Unless required by applicable law or agreed to in writing,
1313
* software distributed under the License is distributed on an
@@ -27,32 +27,27 @@
2727
/**
2828
* CacheContext
2929
*/
30-
public class CacheContext
31-
{
30+
public class CacheContext {
3231

3332
private final MavenProject project;
3433
private final ProjectsInputInfo inputInfo;
3534
private final MavenSession session;
3635

37-
public CacheContext( MavenProject project, ProjectsInputInfo inputInfo, MavenSession session )
38-
{
39-
this.project = requireNonNull( project );
40-
this.inputInfo = requireNonNull( inputInfo );
41-
this.session = requireNonNull( session );
36+
public CacheContext(MavenProject project, ProjectsInputInfo inputInfo, MavenSession session) {
37+
this.project = requireNonNull(project);
38+
this.inputInfo = requireNonNull(inputInfo);
39+
this.session = requireNonNull(session);
4240
}
4341

44-
public MavenProject getProject()
45-
{
42+
public MavenProject getProject() {
4643
return project;
4744
}
4845

49-
public ProjectsInputInfo getInputInfo()
50-
{
46+
public ProjectsInputInfo getInputInfo() {
5147
return inputInfo;
5248
}
5349

54-
public MavenSession getSession()
55-
{
50+
public MavenSession getSession() {
5651
return session;
5752
}
5853
}

src/main/java/org/apache/maven/buildcache/CacheController.java

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* "License"); you may not use this file except in compliance
88
* with the License. You may obtain a copy of the License at
99
*
10-
* http://www.apache.org/licenses/LICENSE-2.0
10+
* http://www.apache.org/licenses/LICENSE-2.0
1111
*
1212
* Unless required by applicable law or agreed to in writing,
1313
* software distributed under the License is distributed on an
@@ -20,6 +20,7 @@
2020

2121
import java.util.List;
2222
import java.util.Map;
23+
2324
import org.apache.maven.execution.MavenSession;
2425
import org.apache.maven.execution.MojoExecutionEvent;
2526
import org.apache.maven.plugin.MojoExecution;
@@ -28,22 +29,19 @@
2829
/**
2930
* CacheController
3031
*/
31-
public interface CacheController
32-
{
32+
public interface CacheController {
3333

34-
CacheResult findCachedBuild( MavenSession session,
35-
MavenProject project,
36-
List<MojoExecution> mojoExecutions,
37-
boolean skipCache );
34+
CacheResult findCachedBuild(
35+
MavenSession session, MavenProject project, List<MojoExecution> mojoExecutions, boolean skipCache);
3836

39-
boolean restoreProjectArtifacts( CacheResult cacheResult );
37+
boolean restoreProjectArtifacts(CacheResult cacheResult);
4038

41-
void save( CacheResult cacheResult,
39+
void save(
40+
CacheResult cacheResult,
4241
List<MojoExecution> mojoExecutions,
43-
Map<String, MojoExecutionEvent> executionEvents );
44-
45-
boolean isForcedExecution( MavenProject project, MojoExecution execution );
42+
Map<String, MojoExecutionEvent> executionEvents);
4643

47-
void saveCacheReport( MavenSession session );
44+
boolean isForcedExecution(MavenProject project, MojoExecution execution);
4845

46+
void saveCacheReport(MavenSession session);
4947
}

0 commit comments

Comments
 (0)