-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1008 from jqno/refactor-valueproviders
Refactor ValueProviders for prefab values
- Loading branch information
Showing
53 changed files
with
1,105 additions
and
294 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
...ifier-core/src/main/java/nl/jqno/equalsverifier/internal/exceptions/NoValueException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package nl.jqno.equalsverifier.internal.exceptions; | ||
|
||
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; | ||
import nl.jqno.equalsverifier.internal.reflection.TypeTag; | ||
|
||
@SuppressFBWarnings(value = "SE_BAD_FIELD", justification = "EqualsVerifier doesn't serialize.") | ||
public class NoValueException extends MessagingException { | ||
|
||
private final TypeTag tag; | ||
private final String label; | ||
|
||
public NoValueException(TypeTag tag) { | ||
this(tag, null); | ||
} | ||
|
||
public NoValueException(TypeTag tag, String label) { | ||
super(); | ||
this.tag = tag; | ||
this.label = label; | ||
} | ||
|
||
@Override | ||
public String getDescription() { | ||
return ( | ||
"Could not find a value for " + | ||
tag + | ||
(label == null ? "" : " and label " + label) + | ||
". Please add prefab values for this type." | ||
); | ||
} | ||
} |
Oops, something went wrong.