From bdb22f134e2d6d3061e74551cba482da6a56fb45 Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Sat, 20 Jun 2020 15:08:12 +0100 Subject: [PATCH] TypeAlias allow toString to be overridden (#129) --- src/main/java/net/kemitix/mon/TypeAlias.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/main/java/net/kemitix/mon/TypeAlias.java b/src/main/java/net/kemitix/mon/TypeAlias.java index 4422b4d..40d1f7d 100644 --- a/src/main/java/net/kemitix/mon/TypeAlias.java +++ b/src/main/java/net/kemitix/mon/TypeAlias.java @@ -87,8 +87,13 @@ public abstract class TypeAlias { return o != null && map(o::equals); } + /** + * Returns a string representation of the TypeAlias. + * + *

This implementation delegates to the aliased value unmodified.

+ */ @Override - public final String toString() { + public String toString() { return value.toString(); }