Use correct access level for overwrites

This commit is contained in:
embeddedt 2023-04-26 20:59:49 -04:00
parent 4a7bcbfd38
commit 57b7c4785a
No known key found for this signature in database
GPG Key ID: A69433EC199B5613
2 changed files with 2 additions and 2 deletions

View File

@ -19,7 +19,7 @@ public class TagEntryMixin {
* @reason use cached location, overwrite rather than inject to avoid allocs * @reason use cached location, overwrite rather than inject to avoid allocs
*/ */
@Overwrite @Overwrite
private ExtraCodecs.TagOrElementLocation elementOrTag() { public ExtraCodecs.TagOrElementLocation elementOrTag() {
ExtraCodecs.TagOrElementLocation loc = cachedLoc; ExtraCodecs.TagOrElementLocation loc = cachedLoc;
if(loc == null) { if(loc == null) {
loc = new ExtraCodecs.TagOrElementLocation(this.id, this.tag); loc = new ExtraCodecs.TagOrElementLocation(this.id, this.tag);

View File

@ -18,7 +18,7 @@ public class TagOrElementLocationMixin {
* @reason use cached ID, overwrite rather than inject to avoid allocs * @reason use cached ID, overwrite rather than inject to avoid allocs
*/ */
@Overwrite @Overwrite
private String decoratedId() { public String decoratedId() {
String id = cachedDecoratedId; String id = cachedDecoratedId;
if(id == null) { if(id == null) {
id = this.tag ? "#" + this.id : this.id.toString(); id = this.tag ? "#" + this.id : this.id.toString();