code formatting

This commit is contained in:
Hervé Boutemy 2013-03-30 09:37:11 +01:00
parent 973673721b
commit 42962fa281
12 changed files with 66 additions and 45 deletions

View File

@ -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;

View File

@ -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

View File

@ -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;

View File

@ -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 );

View File

@ -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.

View File

@ -43,7 +43,7 @@ public class Log4j2Configuration
value = "info";
break;
case ERROR:
default:
value = "error";
break;
}

View File

@ -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;
}

View File

@ -45,7 +45,7 @@ public class Slf4jSimpleConfiguration
value = "info";
break;
case ERROR:
default:
value = "error";
break;
}