mirror of https://github.com/apache/maven.git
code formatting
This commit is contained in:
parent
973673721b
commit
42962fa281
|
@ -1,5 +1,24 @@
|
|||
package org.apache.maven.repository.internal;
|
||||
|
||||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
* distributed with this work for additional information
|
||||
* regarding copyright ownership. The ASF licenses this file
|
||||
* to you under the Apache License, Version 2.0 (the
|
||||
* "License"); you may not use this file except in compliance
|
||||
* with the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
import java.util.Collections;
|
||||
import java.util.HashSet;
|
||||
import java.util.Set;
|
||||
|
|
|
@ -191,7 +191,6 @@ public class DefaultMaven
|
|||
return result;
|
||||
}
|
||||
|
||||
@SuppressWarnings({"ThrowableInstanceNeverThrown", "ThrowableResultOfMethodCallIgnored"})
|
||||
private MavenExecutionResult doExecute( MavenExecutionRequest request )
|
||||
{
|
||||
//TODO: Need a general way to inject standard properties
|
||||
|
|
|
@ -43,9 +43,9 @@ import java.util.Map;
|
|||
class ReactorReader
|
||||
implements WorkspaceReader
|
||||
{
|
||||
private final static Collection<String> JAR_LIKE_TYPES = Arrays.asList( "jar", "test-jar", "ejb-client" );
|
||||
private static final Collection<String> JAR_LIKE_TYPES = Arrays.asList( "jar", "test-jar", "ejb-client" );
|
||||
|
||||
private final static Collection<String> COMPILE_PHASE_TYPES = Arrays.asList( "jar", "ejb-client" );
|
||||
private static final Collection<String> COMPILE_PHASE_TYPES = Arrays.asList( "jar", "ejb-client" );
|
||||
|
||||
private Map<String, MavenProject> projectsByGAV;
|
||||
|
||||
|
|
|
@ -122,8 +122,9 @@ public interface ProjectBuildingRequest
|
|||
List<String> getInactiveProfileIds();
|
||||
|
||||
/**
|
||||
* Add a {@link org.apache.maven.model.Profile} that has come from an external source. This may be from a custom configuration
|
||||
* like the MavenCLI settings.xml file, or from a custom dialog in an IDE integration like M2Eclipse.
|
||||
* Add a {@link org.apache.maven.model.Profile} that has come from an external source. This may be from a custom
|
||||
* configuration like the MavenCLI settings.xml file, or from a custom dialog in an IDE integration like M2Eclipse.
|
||||
*
|
||||
* @param profile
|
||||
*/
|
||||
void addProfile( Profile profile );
|
||||
|
@ -143,7 +144,6 @@ public interface ProjectBuildingRequest
|
|||
* Sets the start time of the build.
|
||||
*
|
||||
* @param buildStartTime The start time of the build, may be {@code null}.
|
||||
* @return This request, never {@code null}.
|
||||
*/
|
||||
void setBuildStartTime( Date buildStartTime );
|
||||
|
||||
|
|
|
@ -27,7 +27,10 @@ package org.apache.maven.cli.logging;
|
|||
*/
|
||||
public interface Slf4jConfiguration
|
||||
{
|
||||
public static enum Level { DEBUG, INFO, ERROR }
|
||||
public static enum Level
|
||||
{
|
||||
DEBUG, INFO, ERROR
|
||||
}
|
||||
|
||||
/**
|
||||
* Set root logging level.
|
||||
|
|
|
@ -43,7 +43,7 @@ public class Log4j2Configuration
|
|||
value = "info";
|
||||
break;
|
||||
|
||||
case ERROR:
|
||||
default:
|
||||
value = "error";
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -45,7 +45,7 @@ public class LogbackConfiguration
|
|||
value = ch.qos.logback.classic.Level.INFO;
|
||||
break;
|
||||
|
||||
case ERROR:
|
||||
default:
|
||||
value = ch.qos.logback.classic.Level.ERROR;
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -45,7 +45,7 @@ public class Slf4jSimpleConfiguration
|
|||
value = "info";
|
||||
break;
|
||||
|
||||
case ERROR:
|
||||
default:
|
||||
value = "error";
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue