mirror of
https://github.com/sigmasternchen/xtext-core
synced 2025-03-15 16:28:56 +00:00
Replace deprecated Objects.ToStringHelper by MoreObjects.ToStringHelper
Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
This commit is contained in:
parent
853692957f
commit
5c04979dd2
1 changed files with 3 additions and 3 deletions
|
@ -9,8 +9,8 @@ package org.eclipse.xtext.formatting2.regionaccess.internal;
|
|||
|
||||
import org.eclipse.xtext.formatting2.regionaccess.ITextRegionAccess;
|
||||
|
||||
import com.google.common.base.Objects;
|
||||
import com.google.common.base.Objects.ToStringHelper;
|
||||
import com.google.common.base.MoreObjects;
|
||||
import com.google.common.base.MoreObjects.ToStringHelper;
|
||||
|
||||
/**
|
||||
* @author Moritz Eysholdt - Initial contribution and API
|
||||
|
@ -45,7 +45,7 @@ public class TextSegment extends AbstractTextSegment {
|
|||
|
||||
@Override
|
||||
public String toString() {
|
||||
ToStringHelper helper = Objects.toStringHelper(this).add("offset", offset).add("length", length);
|
||||
ToStringHelper helper = MoreObjects.toStringHelper(this).add("offset", offset).add("length", length);
|
||||
if (regionAccess != null)
|
||||
helper.add("text", getText());
|
||||
return helper.toString();
|
||||
|
|
Loading…
Reference in a new issue