Skip to content

Commit

Permalink
Update field name PackagePath.scoped (Commonjava#2422)
Browse files Browse the repository at this point in the history
  • Loading branch information
ruhan1 authored Mar 11, 2024
1 parent afa2750 commit bb59141
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public class PackagePath

private String tarPath;

private Boolean isScoped;
private Boolean scoped;

private String packageName;

Expand All @@ -43,7 +43,7 @@ private void init()
String[] pathParts = tarPath.split( "/" );
if ( tarPath.startsWith( "@" ) )
{
isScoped = Boolean.TRUE;
scoped = Boolean.TRUE;
scopedName = pathParts[0];
packageName = pathParts[1];
if ( pathParts.length == 4 && "-".equals( pathParts[2] ) )
Expand All @@ -58,7 +58,7 @@ else if ( pathParts.length == 3 )
}
else
{
isScoped = Boolean.FALSE;
scoped = Boolean.FALSE;
packageName = pathParts[0];
if ( pathParts.length == 3 && "-".equals( pathParts[1] ) )
{
Expand All @@ -84,12 +84,12 @@ public void setTarPath( String tarPath )

public Boolean isScoped()
{
return isScoped;
return scoped;
}

public void setScoped( Boolean scoped )
{
isScoped = scoped;
this.scoped = scoped;
}

public String getPackageName()
Expand Down Expand Up @@ -150,7 +150,7 @@ else if ( path.startsWith( "@" ) && parts.length < 3 )
@Override
public String toString()
{
return "PackagePath{" + "tarPath='" + tarPath + '\'' + ", isScoped=" + isScoped + ", packageName='"
return "PackagePath{" + "tarPath='" + tarPath + '\'' + ", scoped=" + scoped + ", packageName='"
+ packageName + '\'' + ", version='" + version + '\'' + ", scopedName='" + scopedName + '\''
+ '}';
}
Expand Down

0 comments on commit bb59141

Please sign in to comment.