Skip to content

Commit

Permalink
Added missing @Deprecated/@deprecated annotations
Browse files Browse the repository at this point in the history
@deprecated annotatio is helpful to prevent usage of deprecated API.
For example: developer can see crossed out method/field name if this item
is deprecated.
  • Loading branch information
tbw777 authored and michael-o committed Mar 8, 2023
1 parent ad74f9e commit 6f548e5
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ public class DefaultProfileManager
* @deprecated without passing in the system properties, the SystemPropertiesProfileActivator will not work
* correctly in embedded environments.
*/
@Deprecated
public DefaultProfileManager( PlexusContainer container )
{
this( container, null );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ public InvalidProjectModelException( String projectId, String message, File pomL
* @param validationResult
* @deprecated use {@link File} constructor for pomLocation
*/
@Deprecated
public InvalidProjectModelException( String projectId, String pomLocation, String message,
ModelValidationResult validationResult )
{
Expand All @@ -64,6 +65,7 @@ public InvalidProjectModelException( String projectId, String message, File pomF
* @param message
* @deprecated use {@link File} constructor for pomLocation
*/
@Deprecated
public InvalidProjectModelException( String projectId, String pomLocation, String message )
{
this( projectId, message, new File( pomLocation ) );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@

/**
* @author Jason van Zyl
* @deprecated
*/
@Deprecated
public interface ModelInheritanceAssembler
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ public Model interpolate( Model model, Map<String, ?> context )
*
* @deprecated Use {@link ModelInterpolator#interpolate(Model, File, ProjectBuilderConfiguration, boolean)} instead.
*/
@Deprecated
public Model interpolate( Model model, Map<String, ?> context, boolean strict )
throws ModelInterpolationException
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,14 @@ public interface ModelInterpolator
/**
* @deprecated Use {@link ModelInterpolator#interpolate(Model, File, ProjectBuilderConfiguration, boolean)} instead.
*/
@Deprecated
Model interpolate( Model project, Map<String, ?> context )
throws ModelInterpolationException;

/**
* @deprecated Use {@link ModelInterpolator#interpolate(Model, File, ProjectBuilderConfiguration, boolean)} instead.
*/
@Deprecated
Model interpolate( Model model, Map<String, ?> context, boolean strict )
throws ModelInterpolationException;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ public class DefaultLifecycleMapping
private Map<String, Lifecycle> lifecycleMap;

/** @deprecated use lifecycles instead */
@Deprecated
private Map<String, LifecyclePhase> phases;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ public class DuplicateProjectException
/**
* @deprecated use {@link #DuplicateProjectException(String, File, File, String)}
*/
@Deprecated
public DuplicateProjectException( String message )
{
this( null, null, null, message );
Expand All @@ -46,6 +47,7 @@ public DuplicateProjectException( String message )
/**
* @deprecated use {@link #DuplicateProjectException(String, File, File, String)}
*/
@Deprecated
public DuplicateProjectException( String message, Exception e )
{
super( message, e );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ public File getPomFile()
/**
* @deprecated use {@link #getPomFile()}
*/
@Deprecated
public String getPomLocation()
{
if ( getPomFile() != null )
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,11 @@
* Provides backwards compatibility with Maven 3.2.3 and earlier. Clients that do not require compatibility with Maven
* 3.2.3 and earlier are encouraged to use {@link JavaToolchainImpl}.
* <strong>Note:</strong> This is an internal component whose interface can change without prior notice.
*
*
* @deprecated clients that do not require compatibility with Maven 3.2.3 and earlier should link to
* {@link JavaToolchainImpl} instead.
*/
@Deprecated
public class DefaultJavaToolChain
extends JavaToolchainImpl
{
Expand All @@ -52,4 +53,4 @@ public void setJavaHome( String javaHome )
super.setJavaHome( javaHome );
}

}
}

0 comments on commit 6f548e5

Please sign in to comment.