From b59457a405f1741cebfa14775b397ae225dd714b Mon Sep 17 00:00:00 2001 From: Andrew Phillips Date: Thu, 23 Jan 2014 02:55:59 -0500 Subject: [PATCH] Fixing an error message about an unassignable backend --- core/src/main/java/org/jclouds/internal/BaseView.java | 2 +- core/src/test/java/org/jclouds/internal/BaseViewTest.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/org/jclouds/internal/BaseView.java b/core/src/main/java/org/jclouds/internal/BaseView.java index 1da574e21a..50c191e861 100644 --- a/core/src/main/java/org/jclouds/internal/BaseView.java +++ b/core/src/main/java/org/jclouds/internal/BaseView.java @@ -51,7 +51,7 @@ public abstract class BaseView extends ForwardingObject implements View { @SuppressWarnings("unchecked") @Override public C unwrap(TypeToken type) { - checkArgument(checkNotNull(type, "type").isAssignableFrom(backendType), "backend type: %s not assignable from %s", backendType, type); + checkArgument(checkNotNull(type, "type").isAssignableFrom(backendType), "backend type: %s not assignable to %s", backendType, type); return (C) backend; } diff --git a/core/src/test/java/org/jclouds/internal/BaseViewTest.java b/core/src/test/java/org/jclouds/internal/BaseViewTest.java index 2d82e3b380..c9471fa803 100644 --- a/core/src/test/java/org/jclouds/internal/BaseViewTest.java +++ b/core/src/test/java/org/jclouds/internal/BaseViewTest.java @@ -105,7 +105,7 @@ public class BaseViewTest { wine.unwrap(typeToken(PeanutButter.class)); fail(); } catch (IllegalArgumentException e) { - assertEquals(e.getMessage(), "backend type: org.jclouds.internal.BaseViewTest$Water not assignable from org.jclouds.internal.BaseViewTest$PeanutButter"); + assertEquals(e.getMessage(), "backend type: org.jclouds.internal.BaseViewTest$Water not assignable to org.jclouds.internal.BaseViewTest$PeanutButter"); } }