From b488ae60091ec8e270aa63f70cc97b97505d9a0a Mon Sep 17 00:00:00 2001 From: Juergen Hoeller Date: Wed, 4 Jul 2012 23:33:15 +0200 Subject: [PATCH] removed misleading "throws IllegalStateException" declaration Issue: SPR-9561 --- .../main/java/org/springframework/core/io/AbstractResource.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.springframework.core/src/main/java/org/springframework/core/io/AbstractResource.java b/org.springframework.core/src/main/java/org/springframework/core/io/AbstractResource.java index 33f7658b37..63defd1701 100644 --- a/org.springframework.core/src/main/java/org/springframework/core/io/AbstractResource.java +++ b/org.springframework.core/src/main/java/org/springframework/core/io/AbstractResource.java @@ -170,7 +170,7 @@ public abstract class AbstractResource implements Resource { * This implementation always returns null, * assuming that this resource type does not have a filename. */ - public String getFilename() throws IllegalStateException { + public String getFilename() { return null; }