Browse Source

Fix unecessary cast

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270899 13f79535-47bb-0310-9956-ffa450edef68
master
Stephane Bailliez 23 years ago
parent
commit
961daf412a
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/main/org/apache/tools/ant/taskdefs/Replace.java

+ 2
- 2
src/main/org/apache/tools/ant/taskdefs/Replace.java View File

@@ -1,7 +1,7 @@
/* /*
* The Apache Software License, Version 1.1 * The Apache Software License, Version 1.1
* *
* Copyright (c) 2000-2001 The Apache Software Foundation. All rights
* Copyright (c) 2000-2002 The Apache Software Foundation. All rights
* reserved. * reserved.
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
@@ -162,7 +162,7 @@ public class Replace extends MatchingTask {
public String getReplaceValue() public String getReplaceValue()
{ {
if (property != null) { if (property != null) {
return (String)properties.getProperty(property);
return properties.getProperty(property);
} }
else if (value != null) { else if (value != null) {
return value; return value;


Loading…
Cancel
Save