Skip to content

Commit

Permalink
#633 Replace NotImplementedException with UnsupportedOperationException
Browse files Browse the repository at this point in the history
  • Loading branch information
metas-rc committed Oct 25, 2017
1 parent 1acaa6f commit 9677fd7
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
import org.adempiere.ad.validationRule.INamePairPredicate;
import org.adempiere.ad.validationRule.IValidationRule;
import org.adempiere.ad.validationRule.NamePairPredicates;
import org.apache.commons.lang3.NotImplementedException;
import org.compiere.util.ValueNamePair;

import com.google.common.base.MoreObjects;
Expand Down Expand Up @@ -135,7 +134,7 @@ public List<ValueNamePair> getExceptionTableAndColumns()
@Override
public void registerException(final String tableName, final String columnName)
{
throw new NotImplementedException("There is no implementation for registering exceptions in the composite validation rule class: " + this);
throw new UnsupportedOperationException("There is no implementation for registering exceptions in the composite validation rule class: " + this);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import org.adempiere.ad.expression.api.IStringExpression;
import org.adempiere.ad.validationRule.INamePairPredicate;
import org.adempiere.ad.validationRule.IValidationRule;
import org.apache.commons.lang3.NotImplementedException;
import org.compiere.util.ValueNamePair;

import com.google.common.collect.ImmutableList;
Expand Down Expand Up @@ -65,6 +64,6 @@ public List<ValueNamePair> getExceptionTableAndColumns()
@Override
public void registerException(final String tableName, final String columnName)
{
throw new NotImplementedException("There is no implementation for registering esceptions in the null validation rule class: " + this);
throw new UnsupportedOperationException("There is no implementation for registering esceptions in the null validation rule class: " + this);
}
};
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
import org.adempiere.ad.validationRule.INamePairPredicate;
import org.adempiere.ad.validationRule.IValidationRule;
import org.adempiere.util.Services;
import org.apache.commons.lang3.NotImplementedException;
import org.compiere.util.ValueNamePair;

import com.google.common.base.MoreObjects;
Expand Down Expand Up @@ -104,7 +103,7 @@ public List<ValueNamePair> getExceptionTableAndColumns()
@Override
public void registerException(final String tableName, final String columnName)
{
throw new NotImplementedException("There is no implementation for registering exceptions in the SQL validation rule class: " + this);
throw new UnsupportedOperationException("There is no implementation for registering exceptions in the SQL validation rule class: " + this);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,9 @@

import org.adempiere.ad.expression.api.IExpressionFactory;
import org.adempiere.ad.expression.api.IStringExpression;
import org.adempiere.ad.validationRule.IValidationRule;
import org.adempiere.ad.validationRule.INamePairPredicate;
import org.adempiere.ad.validationRule.IValidationRule;
import org.adempiere.util.Services;
import org.apache.commons.lang3.NotImplementedException;
import org.compiere.util.ValueNamePair;

import com.google.common.collect.ImmutableList;
Expand Down Expand Up @@ -107,6 +106,6 @@ public List<ValueNamePair> getExceptionTableAndColumns()
@Override
public void registerException(final String tableName, final String columnName)
{
throw new NotImplementedException("There is no implementation for registering esceptions in the VLookupAutoCompleterValidationRule class: " + this);
throw new UnsupportedOperationException("There is no implementation for registering esceptions in the VLookupAutoCompleterValidationRule class: " + this);
}
}

0 comments on commit 9677fd7

Please sign in to comment.