-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow alias expansion to be limited via configuration (#50)
* Allow alias expansion to be limited via configuration - make internal configuration copies - move location to separate class - enable disable of marks for snakeyaml-engine Signed-off-by: Michael Edgar <michael@xlate.io> * Only count alias expansion when configured maximum is less than max long Signed-off-by: Michael Edgar <michael@xlate.io> Signed-off-by: Michael Edgar <michael@xlate.io>
- Loading branch information
Showing
14 changed files
with
192 additions
and
74 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
package io.xlate.yamljson; | ||
|
||
import jakarta.json.stream.JsonLocation; | ||
|
||
class YamlLocation implements JsonLocation { | ||
|
||
final long lineNumber; | ||
final long columnNumber; | ||
final long streamOffset; | ||
|
||
public YamlLocation(long lineNumber, long columnNumber, long streamOffset) { | ||
this.lineNumber = lineNumber; | ||
this.columnNumber = columnNumber; | ||
this.streamOffset = streamOffset; | ||
} | ||
|
||
@Override | ||
public long getLineNumber() { | ||
return lineNumber; | ||
} | ||
|
||
@Override | ||
public long getColumnNumber() { | ||
return columnNumber; | ||
} | ||
|
||
@Override | ||
public long getStreamOffset() { | ||
return streamOffset; | ||
} | ||
|
||
} |
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
Oops, something went wrong.