projects
/
Sone.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Store the current year at time of release in the source code
[Sone.git]
/
src
/
main
/
java
/
net
/
pterodactylus
/
sone
/
template
/
CssClassNameFilter.java
diff --git
a/src/main/java/net/pterodactylus/sone/template/CssClassNameFilter.java
b/src/main/java/net/pterodactylus/sone/template/CssClassNameFilter.java
index
6ba5d6b
..
a3f8db6
100644
(file)
--- a/
src/main/java/net/pterodactylus/sone/template/CssClassNameFilter.java
+++ b/
src/main/java/net/pterodactylus/sone/template/CssClassNameFilter.java
@@
-1,5
+1,5
@@
/*
/*
- * Sone - CssClassNameFilter.java - Copyright © 2010 David Roden
+ * Sone - CssClassNameFilter.java - Copyright © 2010
–2013
David Roden
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@
-19,8
+19,8
@@
package net.pterodactylus.sone.template;
import java.util.Map;
import java.util.Map;
-import net.pterodactylus.util.template.DataProvider;
import net.pterodactylus.util.template.Filter;
import net.pterodactylus.util.template.Filter;
+import net.pterodactylus.util.template.TemplateContext;
/**
* Converts the {@link String} {@link String#valueOf(Object) representation} of
/**
* Converts the {@link String} {@link String#valueOf(Object) representation} of
@@
-35,7
+35,7
@@
public class CssClassNameFilter implements Filter {
* {@inheritDoc}
*/
@Override
* {@inheritDoc}
*/
@Override
- public Object format(
DataProvider dataProvider, Object data, Map<String, String
> parameters) {
+ public Object format(
TemplateContext templateContext, Object data, Map<String, Object
> parameters) {
return String.valueOf(data).replaceAll("[^a-zA-Z0-9-]", "_");
}
return String.valueOf(data).replaceAll("[^a-zA-Z0-9-]", "_");
}