mirror of
https://github.com/peterdell/wudsn-ide.git
synced 2025-01-02 20:29:43 +00:00
Make compiler IDs lower case
This commit is contained in:
parent
f5613d6971
commit
51886fb008
@ -113,7 +113,7 @@
|
||||
defaultHardware="ATARI8BIT"
|
||||
defaultParameters="${sourceFilePath} "
|
||||
homePageURL="https://github.com/tebe6502/Mad-Pascal/releases"
|
||||
id="MP"
|
||||
id="mp"
|
||||
language="PAS"
|
||||
name="%com.wudsn.ide.lng.pas.compiler.mp.MadPascalCompiler.name"
|
||||
version="1.6.5">
|
||||
|
@ -164,7 +164,7 @@ public final class CompilerDefinition implements Comparable<CompilerDefinition>
|
||||
/**
|
||||
* Sets the id of the compiler. Called by {@link CompilerRegistry} only.
|
||||
*
|
||||
* @param id The id of the compiler, not empty and not <code>null</code>.
|
||||
* @param id The id of the compiler, lower case, not empty and not <code>null</code>.
|
||||
*/
|
||||
final void setId(String id) {
|
||||
if (id == null) {
|
||||
@ -173,13 +173,16 @@ public final class CompilerDefinition implements Comparable<CompilerDefinition>
|
||||
if (StringUtility.isEmpty(id)) {
|
||||
throw new IllegalArgumentException("Parameter 'id' must not be empty.");
|
||||
}
|
||||
if (id.equals(id.toLowerCase())) {
|
||||
throw new IllegalArgumentException("Parameter 'id' must not be lower case.");
|
||||
}
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the id of the compiler.
|
||||
*
|
||||
* @return The id of the compiler, not empty and not <code>null</code>.
|
||||
* @return The id of the compiler, lower case, not empty and not <code>null</code>.
|
||||
*/
|
||||
public final String getId() {
|
||||
if (id == null) {
|
||||
|
Loading…
Reference in New Issue
Block a user