Skip to content

Commit

Permalink
Merge pull request #640 from aml-org/publish-5.4.3
Browse files Browse the repository at this point in the history
W-13925186 Publish 5.4.3
  • Loading branch information
damianpedra authored Sep 20, 2023
2 parents 653b974 + 2947ade commit 238edef
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ val ivyLocal = Resolver.file("ivy", file(Path.userHome.absolutePath + "/.ivy2/lo

name := "amf-core"
ThisBuild / scalaVersion := "2.12.15"
ThisBuild / version := "5.4.2"
ThisBuild / version := "5.4.3"

publish := {}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@ package amf.core.client.scala.model.domain

import amf.core.client.scala.errorhandling.AMFErrorHandler
import amf.core.client.scala.model.domain.extensions.{PropertyShape, ShapeExtension}
import amf.core.client.scala.model.domain.federation.{
HasFederationMetadata,
HasShapeFederationMetadata,
ShapeFederationMetadata
}
import amf.core.client.scala.model.domain.federation.HasShapeFederationMetadata
import amf.core.client.scala.model.{BoolField, StrField}
import amf.core.client.scala.traversal.ShapeTraversalRegistry
import amf.core.internal.annotations.LexicalInformation
Expand All @@ -27,6 +23,18 @@ abstract class Shape
with ShapeHelper
with HasShapeFederationMetadata {

private[amf] def debugInfo(compactId: Boolean = true): String = {
val clazz = this.getClass.getSimpleName
val memoryAddress = System.identityHashCode(this)
val id =
if (!compactId) this.id
else {
val start = this.id.indexOf("#")
if (start < 0) this.id else this.id.substring(start)
}
s"$clazz@$memoryAddress: $id"
}

override protected def nameField: Field = Name

def displayName: StrField = fields.field(DisplayName)
Expand Down

0 comments on commit 238edef

Please sign in to comment.