Skip to content

Commit

Permalink
minor cleanup (no functional changes)
Browse files Browse the repository at this point in the history
  • Loading branch information
cowtowncoder committed Nov 24, 2020
1 parent 1e05426 commit eb2b1e3
Showing 1 changed file with 5 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -178,9 +178,6 @@ public Version version() {
@Override
public boolean canUseCharArrays() { return false; }

// Add these in 2.7:

/*
@Override
public Class<YAMLParser.Feature> getFormatReadFeatureType() {
return YAMLParser.Feature.class;
Expand All @@ -190,8 +187,7 @@ public Class<YAMLParser.Feature> getFormatReadFeatureType() {
public Class<YAMLGenerator.Feature> getFormatWriteFeatureType() {
return YAMLGenerator.Feature.class;
}
*/


/*
/**********************************************************
/* Format detection functionality
Expand All @@ -204,14 +200,13 @@ public String getFormatName() {
}

/**
* Sub-classes need to override this method (as of 1.8)
* Sub-classes need to override this method
*/
@Override
public MatchStrength hasFormat(InputAccessor acc) throws IOException
{
/* Actually quite possible to do, thanks to (optional) "---"
* indicator we may be getting...
*/
// Actually quite possible to do, thanks to (optional) "---"
// indicator we may be getting...
if (!acc.hasMoreBytes()) {
return MatchStrength.INCONCLUSIVE;
}
Expand Down Expand Up @@ -312,7 +307,6 @@ public final YAMLFactory configure(YAMLGenerator.Feature f, boolean state) {
return this;
}


/**
* Method for enabling specified generator features
* (check {@link YAMLGenerator.Feature} for list of features)
Expand Down Expand Up @@ -345,7 +339,7 @@ public int getFormatGeneratorFeatures() {

/*
/**********************************************************
/* Overridden parser factory methods (for 2.1)
/* Overridden parser factory methods
/**********************************************************
*/

Expand Down Expand Up @@ -521,7 +515,6 @@ protected Writer _createWriter(OutputStream out, JsonEncoding enc, IOContext ctx
/**********************************************************
*/

@SuppressWarnings("deprecation")
protected Reader _createReader(InputStream in, JsonEncoding enc, IOContext ctxt) throws IOException
{
if (enc == null) {
Expand Down

0 comments on commit eb2b1e3

Please sign in to comment.