-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Open
Labels
status: ideal-for-contributionAn issue that a contributor can help us withAn issue that a contributor can help us withtype: taskA general taskA general task
Description
public class StringToPropertiesConverter implements Converter<String, Properties> {
@Override
public Properties convert(String source) {
Properties info = new Properties();
try (StringReader stringReader = new StringReader(source)) {
info.load(stringReader);
} catch (Exception ex) {
throw new RedisSystemException("Cannot read Redis info", ex);
}
return info;
}
}
Converting String type content into Properties has been defined in org.springframework.data.redis.connection.convert.Converters
.
Can I try to optimize and submit a PR?
Metadata
Metadata
Assignees
Labels
status: ideal-for-contributionAn issue that a contributor can help us withAn issue that a contributor can help us withtype: taskA general taskA general task