mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-22 06:42:42 +01:00
Mark some ActionScript methods as final
.
Summary: These methods shouldn't be overridden. Marking them as `final` will enforce this. Test Plan: N/A Reviewers: epriestley, #blessed_reviewers Reviewed By: epriestley, #blessed_reviewers Subscribers: epriestley, Korvin Differential Revision: https://secure.phabricator.com/D9411
This commit is contained in:
parent
ddf5412cbb
commit
7f9a6626a0
4 changed files with 8 additions and 5 deletions
|
@ -27,15 +27,18 @@ package {
|
||||||
this.send = new LocalConnection();
|
this.send = new LocalConnection();
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function externalInvoke(type:String, object:Object = null):void {
|
final protected function externalInvoke(
|
||||||
|
type:String,
|
||||||
|
object:Object = null):void {
|
||||||
|
|
||||||
ExternalInterface.call('JX.Aphlict.didReceiveEvent', type, object);
|
ExternalInterface.call('JX.Aphlict.didReceiveEvent', type, object);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function error(error:Error):void {
|
final protected function error(error:Error):void {
|
||||||
this.externalInvoke('error', error.toString());
|
this.externalInvoke('error', error.toString());
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function log(message:String):void {
|
final protected function log(message:String):void {
|
||||||
this.externalInvoke('log', message);
|
this.externalInvoke('log', message);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@ package {
|
||||||
import flash.utils.Timer;
|
import flash.utils.Timer;
|
||||||
|
|
||||||
|
|
||||||
public class AphlictClient extends Aphlict {
|
final public class AphlictClient extends Aphlict {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The connection name for this client. This will be used for the
|
* The connection name for this client. This will be used for the
|
||||||
|
|
|
@ -12,7 +12,7 @@ package {
|
||||||
import vegas.strings.JSON;
|
import vegas.strings.JSON;
|
||||||
|
|
||||||
|
|
||||||
public class AphlictMaster extends Aphlict {
|
final public class AphlictMaster extends Aphlict {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The pool of connected clients.
|
* The pool of connected clients.
|
||||||
|
|
Binary file not shown.
Loading…
Reference in a new issue