Skip to content

Commit

Permalink
GH-3286: Make FileTailingEvent#getMessage public
Browse files Browse the repository at this point in the history
Fixes #3286

The `FileTailingEvent.getMessage()` is really meant to be as `public`

**Cherry-pick to 5.3.x, 5.2.x, 5.1.x & 4.3.x**
  • Loading branch information
Toparvion authored and artembilan committed May 21, 2020
1 parent aec7bed commit 28a5be7
Showing 1 changed file with 11 additions and 2 deletions.
@@ -1,5 +1,5 @@
/*
* Copyright 2002-2019 the original author or authors.
* Copyright 2002-2020 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -36,6 +36,7 @@
* @author Gary Russell
* @author Artem Bilan
* @author Ali Shahbour
* @author Vladimir Plizga
* @since 3.0
*
*/
Expand Down Expand Up @@ -218,7 +219,15 @@ public FileTailingEvent(Object source, String message, File file) {
this.file = file;
}

protected String getMessage() {
/**
* Return the text message emitted from the underlying tailing producer
* ({@linkplain ApacheCommonsFileTailingMessageProducer Apache Commons} or one of
* {@linkplain OSDelegatingFileTailingMessageProducer OS natives}).
* <p>Note that for the same event type (e.g. 'file not found') the text may be different
* depending on the producer and its platform.
* @return the original text of the tailing event
*/
public String getMessage() {
return this.message;
}

Expand Down

0 comments on commit 28a5be7

Please sign in to comment.