Skip to content

Commit

Permalink
Use method reference in JFace HTMLPrinter
Browse files Browse the repository at this point in the history
  • Loading branch information
akurtakov committed Dec 6, 2023
1 parent 0bf3af9 commit 240030f
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2000, 2018 IBM Corporation and others.
* Copyright (c) 2000, 2024 IBM Corporation and others.
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
Expand Down Expand Up @@ -255,7 +255,7 @@ public static void addPageProlog(StringBuilder buffer) {
*/
@Deprecated
public static void addPageProlog(StringBuffer buffer) {
runOp(buffer, (sb) -> CORE.addPageProlog(sb));
runOp(buffer, CORE::addPageProlog);
}

public static void addPageEpilog(StringBuilder buffer) {
Expand All @@ -270,7 +270,7 @@ public static void addPageEpilog(StringBuilder buffer) {
*/
@Deprecated
public static void addPageEpilog(StringBuffer buffer) {
runOp(buffer, (sb) -> CORE.addPageEpilog(sb));
runOp(buffer, CORE::addPageEpilog);
}

/**
Expand All @@ -290,7 +290,7 @@ public static void startBulletList(StringBuilder buffer) {
*/
@Deprecated
public static void startBulletList(StringBuffer buffer) {
runOp(buffer, (sb) -> CORE.startBulletList(sb));
runOp(buffer, CORE::startBulletList);
}

/**
Expand All @@ -312,7 +312,7 @@ public static void endBulletList(StringBuilder buffer) {
*/
@Deprecated
public static void endBulletList(StringBuffer buffer) {
runOp(buffer, (sb) -> CORE.endBulletList(sb));
runOp(buffer, CORE::endBulletList);
}

/**
Expand Down

0 comments on commit 240030f

Please sign in to comment.