Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Luncher91 committed Oct 14, 2022
1 parent c658c5f commit 3a2a113
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<artifactId>a2lparser</artifactId>
<name>A2L Parser</name>
<groupId>net.alenzen.a2l</groupId>
<version>2.5.1</version>
<version>2.5.2</version>
<packaging>jar</packaging>
<description>ASAP2 parser</description>
<url>https://github.com/Luncher91/A2LParser/</url>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/net/alenzen/a2l/A2LVisitor.java
Original file line number Diff line number Diff line change
Expand Up @@ -1781,7 +1781,7 @@ public Object visitAxis_pts_block(Axis_pts_blockContext ctx) {
a.setName(exp.Name.getText());
a.setLongIdentifier(visitString(exp.LongIdentifier));
a.setAddress((Long) visit(exp.Address));
a.setInputQuantitiy(exp.InputQuantity.getText());
a.setInputQuantity(exp.InputQuantity.getText());
a.setDeposit(exp.Deposit.getText());
a.setMaxDiff((Double) visit(exp.MaxDiff));
a.setConversion(exp.Conversion.getText());
Expand Down
16 changes: 8 additions & 8 deletions src/main/java/net/alenzen/a2l/AxisPts.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public class AxisPts extends A2LSerializer implements IA2LWriteable, IAsap2TreeE
private String name;
private String longIdentifier;
private long address;
private String inputQuantitiy;
private String inputQuantity;
private String deposit;
private double maxDiff;
private String conversion;
Expand Down Expand Up @@ -64,12 +64,12 @@ public void setAddress(long address) {
this.address = address;
}

public String getInputQuantitiy() {
return inputQuantitiy;
public String getInputQuantity() {
return inputQuantity;
}

public void setInputQuantitiy(String inputQuantitiy) {
this.inputQuantitiy = inputQuantitiy;
public void setInputQuantity(String inputQuantity) {
this.inputQuantity = inputQuantity;
}

public String getDeposit() {
Expand Down Expand Up @@ -259,7 +259,7 @@ public void setConversion(String conversion) {
@Override
public void writeTo(A2LWriter writer) throws IOException {
writer.writelnBeginSpaced("AXIS_PTS", name, A2LWriter.toA2LString(longIdentifier),
"0x" + Long.toHexString(address), inputQuantitiy, deposit, Double.toString(maxDiff), conversion,
"0x" + Long.toHexString(address), inputQuantity, deposit, Double.toString(maxDiff), conversion,
Long.toString(maxAxisPoints), Double.toString(lowerLimit), Double.toString(upperLimit));
writer.indent();

Expand Down Expand Up @@ -328,7 +328,7 @@ public boolean equals(Object o) {
&& Double.compare(axisPts.upperLimit, upperLimit) == 0 && guardRails == axisPts.guardRails
&& readOnly == axisPts.readOnly && Objects.equals(name, axisPts.name)
&& Objects.equals(longIdentifier, axisPts.longIdentifier)
&& Objects.equals(inputQuantitiy, axisPts.inputQuantitiy) && Objects.equals(deposit, axisPts.deposit)
&& Objects.equals(inputQuantity, axisPts.inputQuantity) && Objects.equals(deposit, axisPts.deposit)
&& Objects.equals(conversion, axisPts.conversion) && Objects.equals(notes, axisPts.notes)
&& byteorder == axisPts.byteorder && access == axisPts.access
&& axisPointDeposit == axisPts.axisPointDeposit
Expand All @@ -343,7 +343,7 @@ public boolean equals(Object o) {

@Override
public int hashCode() {
return Objects.hash(name, longIdentifier, address, inputQuantitiy, deposit, maxDiff, conversion, maxAxisPoints,
return Objects.hash(name, longIdentifier, address, inputQuantity, deposit, maxDiff, conversion, maxAxisPoints,
lowerLimit, upperLimit, notes, byteorder, access, axisPointDeposit, displayIdentifier,
ecuAddressExtension, extendedLimits, format, functions, guardRails, ifData, monotony, physUnit,
readOnly, memorySegment, stepSize, symbolLink);
Expand Down
Loading

0 comments on commit 3a2a113

Please sign in to comment.