From 795839dd56b8ee9e9a2ed739fb27e4b196485f4a Mon Sep 17 00:00:00 2001 From: Derek Bankieris Date: Mon, 16 Mar 2015 13:20:02 -0500 Subject: [PATCH] Corrected VSBoolean's toString method to return a value that Python will recognize as a boolean. --- trick_source/java/src/trick/common/utils/vs/VSBoolean.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/trick_source/java/src/trick/common/utils/vs/VSBoolean.java b/trick_source/java/src/trick/common/utils/vs/VSBoolean.java index 960788d9..8b10a792 100644 --- a/trick_source/java/src/trick/common/utils/vs/VSBoolean.java +++ b/trick_source/java/src/trick/common/utils/vs/VSBoolean.java @@ -15,4 +15,10 @@ public class VSBoolean extends VSValue { setValue(Integer.parseInt(string.trim()) != 0); } + + @Override + public String toString() { + return getValue() ? "True" : "False"; + } + }