Permalink
Browse files

[WeaponProfsToken] inline string join; delete deprecated class (#4290)

  • Loading branch information...
grimreaper authored and karianna committed Oct 9, 2018
1 parent 03a9dcd commit 78a1467e08e4e222033c72ac8619adef2595dea8

This file was deleted.

Oops, something went wrong.
@@ -18,10 +18,12 @@
*/
package plugin.exporttokens.deprecated;
import java.util.stream.Collectors;
import pcgen.cdom.base.CDOMObject;
import pcgen.cdom.base.Constants;
import pcgen.core.SettingsHandler;
import pcgen.core.display.CharacterDisplay;
import pcgen.core.display.DisplayUtilities;
import pcgen.io.ExportHandler;
import pcgen.io.exporttoken.AbstractExportToken;
@@ -57,7 +59,9 @@ public String getToken(String tokenSource, CharacterDisplay display, ExportHandl
{
if (SettingsHandler.getWeaponProfPrintout())
{
return DisplayUtilities.joinDisplayName(display.getSortedWeaponProfs(), ", ");
return display.getSortedWeaponProfs().stream()
.map(CDOMObject::getDisplayName)
.collect(Collectors.joining(", "));
}
else
{

0 comments on commit 78a1467

Please sign in to comment.