/*
 * Copyright 2002-2005 the original author or authors.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package org.springframework.core;

/**
 * Class that exposes the Spring version. Fetches the
 * "Implementation-Version" manifest attribute from the jar file.
 *
 * @author Juergen Hoeller
 * @since 1.1
 */
public class SpringVersion {

	/**
	 * Return the full Spring version string.
	 * @see java.lang.Package#getImplementationVersion
	 */
	public static String getVersion() {
		return SpringVersion.class.getPackage().getImplementationVersion();
	}

}

@@ -877,23 +877,16 @@
 he full 
-Spring 
 version 
@@ -891,16 +891,100 @@
 n string
+ of the present Spring codebase,%0A%09 * or %3Ccode%3Enull%3C/code%3E if it cannot be determined
 .%0A%09 * @s
@@ -1028,16 +1028,18 @@
 nVersion
+()
 %0A%09 */%0A%09p
@@ -1079,14 +1079,21 @@
 %7B%0A%09%09
-return
+Package pkg =
  Spr
@@ -1121,16 +1121,45 @@
 ackage()
+;%0A%09%09return (pkg != null ? pkg
 .getImpl
@@ -1177,16 +1177,24 @@
 ersion()
+ : null)
 ;%0A%09%7D%0A%0A%7D%0A

return null if the package is not determinable because of ClassLoader restrictions